Description
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