Home > Back-end >  Azure Data Factory Global variables
Azure Data Factory Global variables

Time:12-17

If I define a global variable at the management panel level. Is that variable accessible by other concurrently running data factories?

I am looking into using a global as a validation flag as it will be available as a return value from child pipelines. And I do not want a concurrent data factory invocation to have scope into that variable.

CodePudding user response:

I believe you are referring to Global parameters in Azure Data factory. If that is the case, then the answer is No. Global parameters are constants across a particular Data Factory that can be consumed by a pipeline in any expression. You cannot use that global parameter in other data factories except the one in which it was created. But it can be referenced in other pipelines within the same data factory.

CodePudding user response:

Adding to the @KranthiPakala-MSFT, Yes Global parameters are constant, and we cannot use a Global parameter of one ADF in another ADF.

But if you want to use it, store it in a file in blob using copy activity source additional column.

Then use this file value by lookup activity in another ADF workspace.

Or store it in a set variable.

enter image description here

enter image description here

Run this pipeline and in another ADF get this activity run details by using the below REST API in web activity.

https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns?api-version=2018-06-01
  • Related