Access ADF global variable programmatically from .NET SDK client

Amy Cui 1 Reputation point Microsoft Employee
2022-10-12T17:41:54.763+00:00

I have created a global variable in ADF portal. I want to define pipeline name using the global variable value. The pipeline is created from .NET SDK. Is there a way to access the ADF global variable programmatically from .NET SDK client?

Alternatively, if I can create global variable in .NET SDK and deploy it to ADF, it would also work. But, how to create ADF global variable in .NET SDK?

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

1 answer

Sort by: Most helpful
  1. ShaikMaheer-MSFT 38,501 Reputation points Microsoft Employee
    2022-10-18T14:20:01.577+00:00

    Hi @Amy Cui ,

    Thank you for posting query in Microsoft Q&A platform.

    There are few classes available in ADF .NET SDK for global parameters. You can leverage them if that helps. Click here for same.

    251652-image.png

    There are REST APIs too available which works with global parameters in ADF. You can consider writing .net code to make REST API call using these APIs and get your job done. I feel thats better way. Click here for REST APIs for global parameters in ADF.

    Hope this helps. Please let me know if any further queries.


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.