How to set Auth Headers on http linked service in Data factory via api

Per Hederos 96 Reputation points


I generate the data factory via .net api (ie: Microsoft.Azure.Management.DataFactory) but I coming up short on this one thing. That is how to set the Auth Header of a Http Linked service. It is easy using the studio but is very hard to do via the .net API.

In the studio you can just enter the value as illustrated below generating a json-structure.



But in the code there is no such property. I assume you have to try setting AdditionalProperties. But that property wants a Dictionary<string, object> I no matter what I try I can't get it to work. I have tried googling this in many ways but I have found no clue on how to succeed.

Can anyone please help me? How do I set AuthHeaders in the HttpLinkedService-object?


Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
7,192 questions
0 comments No comments
{count} votes

Accepted answer
  1. Per Hederos 96 Reputation points

    Never mind! Stupid me. After upgrading to latest version of the nuget-package the property AuthHeaders appeared.

    Passing a JObject seems to work. Might be other objects that work as well...


    0 comments No comments

0 additional answers

Sort by: Most helpful