Search code examples
azure-data-factory

How to pass variable from main pipeline to child pipeline in Azure Data Factory?


I have set variable "Id" in main pipeline and I'm setting value in "Set Variable 1" I would like to pass variable to child pipeline. I have created parameter "Id" in child pipeline. However I cannot refer to @{variables('id')} in Lookup5 of Child pipeline.

How to pass correctly variable?

Main pipeline: Main pipeline

Child pipeline: Child pipeline


Solution

  • You should be able to pass the variable into the parameters of child pipeline. enter image description here

    Simply access the passed in parameter with @{pipeline().parameters.Id} in the child pipeline. enter image description here