Skip to content

[BUG] Cannot create WebActivity headers #39187

Closed
@chinarosesz

Description

@chinarosesz

Library name and version

Azure.ResourceManager.DataFactory v1.0.0-beta.4

Describe the bug

I'm having a lot of trouble creating a web activity headers. I've tried using literal string, secure string, and expression. And none of this worked for the basic scenario such as setting a basic key/value pair.

The previous SDK worked because the headers takes in a dictionary, but the new SDK takes in a DataFactoryElement.

Expected behavior

Generated key value pairs for headers

Actual behavior

Generated value of 0, 1, 2, 3, and each character from the literal string as single item.

Reproduction Steps

// Create pipeline web activity
DataFactoryElement uri = $"@concat('https://{functionAppName}.azurewebsites.net/api/SyncPermissionsFunction?organization={org.Url}&code=',pipeline().parameters.functionkey)";
WebActivity webActivity = new WebActivity("SyncPermissionsFunction", WebActivityMethod.Get, uri);

// This line does not work.
webActivity.Headers = DataFactoryElement.FromLiteral("foo");

Environment

No response

Metadata

Metadata

Labels

Data FactoryMgmtThis issue is related to a management-plane library.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions