To pass variables from an Azure Data Factory (ADF) pipeline configuration file to an Azure DevOps release pipeline, you can use variable groups in Azure DevOps. Variable groups store values and secrets that can be passed into a YAML pipeline or made available across multiple pipelines. You can share and use variable groups in multiple pipelines in the same project.
To create a new variable group in Azure DevOps:
- Go to the Pipelines section and select Library.
- Select + Variable group.
- Enter a name for the variable group.
- Add the variables you want to use in the release pipeline, such as Storage accounts key or SFTP location.
- Save the variable group.
To use the variable group in the release pipeline:
- Go to the release pipeline and select Edit.
- Select Variables.
- Select Link variable group.
- Select the variable group you created earlier.
- Save the changes.
With this setup, the variables defined in the ADF pipeline configuration file can be passed to the Azure DevOps release pipeline through the linked variable group.
References: