Azure Data Factory global parameters not included in ARM Template

Valter Prykäri 126 Reputation points
2022-06-29T09:51:52.417+00:00

I switched from the deprecated way of including Global Parameters in the ARM Template as mentioned here:

https://learn.microsoft.com/en-us/azure/data-factory/author-global-parameters#cicd

The change resulted in the removal of the global parameters from the template, and now there is no way of going back to the old way as that is disabled. Is there something I am missing? I have a customized parameters configuration file, can that cause this issue?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,340 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Valter Prykäri 126 Reputation points
    2022-07-01T10:18:49.187+00:00

    Hi, thank you for your response! I realize I gave a poor description, sorry about that. Yes, I have checked the box under ARM Template. After checking your suggestion, the parameters seem to be included in the end of arm_template.json with their respective values. They are not a part of arm_parameters_template.json. I solved the issue by adding the parameters into the parameters definition file manually:
    ,
    "Microsoft.DataFactory/factories/globalparameters": {
    "properties": {
    "*": "="
    }
    }

    Thank you for your help!

    2 people found this answer helpful.

  2. KranthiPakala-MSFT 46,412 Reputation points Microsoft Employee
    2022-06-30T18:29:14.443+00:00

    Hello @Valter Prykäri ,

    Thanks for the question and using MS Q&A platform.

    Could you please elaborate a bit on the problem statement - "The change resulted in the removal of the global parameters from the template"?

    The new mechanism of including global parameters in the ARM template (from Manage hub -> ARM template -> Include global parameters in ARM template ) as illustrated below, will not conflict/ override the factory-level settings as it used to do earlier (old mechanism), hence not requiring additional PowerShell scripts to be run for global parameters deployment during CI/CD. The new mechanism is to make sure Global parameters will be included in the ARM template. And this is the recommended approach by ADF product team for including global parameters in the ARM template during the CI/CD.

    216655-image.png

    In case if you have tried creating a custom Resource Manager parameter configuration then a file named arm-template-parameters-definition.json is created in the root folder of your git branch, could you please check that file if you are able to see the global parameters listed in it.

    216570-image.png

    Thanks