Proposed Pull Request Change

title description ms.subservice ms.topic author ms.author ms.date ai-usage
Global parameters Set global parameters for each of your Azure Data Factory environments authoring conceptual nabhishek abnarain 02/13/2025 ai-assisted
πŸ“„ Document Links
GitHub View on GitHub Microsoft Learn View on Microsoft Learn
Raw New Markdown
Generating updated version of doc...
Rendered New Markdown
Generating updated version of doc...
+0 -0
+0 -0
--- title: Global parameters description: Set global parameters for each of your Azure Data Factory environments ms.subservice: authoring ms.topic: conceptual author: nabhishek ms.author: abnarain ms.date: 02/13/2025 ai-usage: ai-assisted --- # Global parameters in Azure Data Factory [!INCLUDE[appliesto-adf-xxx-md](includes/appliesto-adf-xxx-md.md)] Global parameters are constants across a data factory that pipelines can consume in any expression. They're useful when you have multiple pipelines with identical parameter names and values. When promoting a data factory using the continuous integration and deployment process (CI/CD), you can override these parameters in each environment. ## Creating global parameters To create a global parameter, go to the *Global parameters* tab in the **Manage** section. Select **New** to open the creation side-nav. :::image type="content" source="media/author-global-parameters/create-global-parameter-1.png" alt-text="Screenshot that highlights the New button you select to create global parameters."::: In the side-nav, enter a name, select a data type, and specify the value of your parameter. :::image type="content" source="media/author-global-parameters/create-global-parameter-2.png" alt-text="Screenshot that shows where you add the name, data type, and value for the new global parameter."::: After a global parameter is created, you can edit it by clicking the parameter's name. To alter multiple parameters at once, select **Edit all**. :::image type="content" source="media/author-global-parameters/create-global-parameter-3.png" alt-text="Create global parameters"::: ## Using global parameters in a pipeline Global parameters can be used in any [pipeline expression](control-flow-expression-language-functions.md). If a pipeline is referencing another resource such as a dataset or data flow, you can pass down the global parameter value via that resource's parameters. Global parameters are referenced as `pipeline().globalParameters.<parameterName>`. :::image type="content" source="media/author-global-parameters/expression-global-parameters.png" alt-text="Using global parameters"::: ## <a name="cicd"></a> Global parameters in CI/CD We recommend including global parameters in the ARM template during the CI/CD. The new mechanism of including global parameters in the ARM template (from 'Manage hub' -> 'ARM template' -> β€˜Include global parameters in ARM template') as illustrated in the following image, won't conflict/ override the factory-level settings as it used to do earlier, hence not requiring extra PowerShell for global parameters deployment during CI/CD. :::image type="content" source="media/author-global-parameters/include-arm-template.png" alt-text="Screenshot of 'Include in ARM template'."::: > [!NOTE] > We moved the UI experience for including global parameters from the 'Global parameters' section to the 'ARM template' section in the Manage hub. If you're already using the older mechanism (from 'Manage hub' -> 'Global parameters' -> 'Include in ARM template'), you can continue. We'll continue to support it. The **Parameters** folder in the downloaded ARM template contains JSON files that define the parameters used in the ARM template. Each file corresponds to a specific global parameter. If you're using the older flow of integrating global parameters in your continuous integration and deployment solution, it continues to work: * Include global parameters in the ARM template (from 'Manage hub' -> 'Global parameters' -> 'Include in ARM template') :::image type="content" source="media/author-global-parameters/include-arm-template-deprecated.png" alt-text="Screenshot of deprecated 'Include in ARM template'."::: * Deploy global parameters via a PowerShell script We strongly recommend using the new mechanism of including global parameters in the ARM template (from 'Manage hub' -> 'ARM template' -> 'Include global parameters in an ARM template') since it makes the CICD with global parameters much more straightforward and easier to manage. > [!NOTE] > The **Include global parameters in an ARM template** configuration is only available in "Git mode". Currently it's disabled in "live mode" or "Data Factory" mode. > [!WARNING] >You can't use β€˜-β€˜ in the parameter name. You receive an errorcode "{"code":"BadRequest","message":"ErrorCode=InvalidTemplate,ErrorMessage=The expression >'pipeline().globalParameters.myparam-dbtest-url' isn't valid: .....}". But, you can use the β€˜_’ in the parameter name. ## Related content * Learn about Azure Data Factory's [continuous integration and deployment process](continuous-integration-delivery-improvements.md) * Learn how to use the [control flow expression language](control-flow-expression-language-functions.md)
Success! Branch created successfully. Create Pull Request on GitHub
Error: