skip to Main Content

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.

2

Answers


  1. 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.

    Login or Signup to reply.
  2. 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
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search