question

KothaiRamanathan-7384 avatar image
0 Votes"
KothaiRamanathan-7384 asked RoohulKaiser-1463 commented

ADF Global Parameters not exported in arm template

I exported my data factory which has global parameters. However, in the parameters.json file, I do not see the global parameters.
Should the global parameters be only added manually ? Please let me know.

Below is my global parameters page for reference.

25174-image.png
Thanks,
Kothai.


azure-data-factory
image.png (18.8 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @KothaiRamanathan-7384,

Thanks for posting the query.

Yes, I was able to reproduce this issue and there is an option in GIT mode to enable this as mentioned in the documentation. Also, I observed that in an empty data factory if we configure GIT mode, enable this option, publish and revert back to Live mode then exporting the ARM template is showing the global parameters section. I reached out to Product team to understand more and I will get back to you once I hear from them.

Thanks for your patience!

0 Votes 0 ·

I figured out a solution for this problem, and it works like a charm!


In data factory go to "Manage > "ARM Template" > "Edit parameter configuration" and click "Edit"


At the very end of the editor right before the last "}" add the below lines:

  ,"Microsoft.DataFactory/factories": {
      "properties": {
          "globalParameters": {
              "*": {
                  "value": "-"
              }
          }
      }
  }

This should then expose the global parameters in arm_template which in turn you'll see in CICD pipeline. Hope it helps.




0 Votes 0 ·

1 Answer

HarithaMaddi-MSFT avatar image
0 Votes"
HarithaMaddi-MSFT answered AlokThampi-9270 commented

Hi @KothaiRamanathan-7384,

Thanks for your patience again.

I discussed with Product team and below are the points:

  • The ARM templates with Global Parameters in live mode can be found inside "Factory" folder once you export the ARM template

  • By default, including Global parameters in ARM templates is considered optional and hence, the outside ARM templates when exported does not have these details today

  • There is an option to choose "to include global parameters" in ARM templates only in GIT mode and is planned to be implemented in future in Live mode as well which once enabled, will give an option to get these values in outside ARM templates as well.

Hope this helps! Please let me know for more queries and we will be glad to assist.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @HarithaMaddi-MSFT ,

Looks like including the global parameters in ARM template is still not possible.
Can you please let know if this there is still a plan on including this in the template? This would be really helpful especially when the GIT is not enabled in the ADF.

Thanks,
Alok

1 Vote 1 ·