Azure-Player / azure.datafactory.tools

Tools for deploying Data Factory (v2) in Microsoft Azure
https://azureplayer.net/adftools
MIT License
207 stars 69 forks source link

Update global parameters fails for Azure Government subscription #356

Open cog-adf opened 1 year ago

cog-adf commented 1 year ago

Describe the bug I'm receiving a 404 (Subscription not found) when the task is trying to update the global parameters.

To Reproduce Run the pipeline to deploy/update an ADF instance to a subscription hosted in Azure Government which contains global parameters.

GlobalParam.ps1 contains a hardcoded reference to https://management.azure.com (= Azure commercial URL) The Azure Government URL equivalent is https://management.usgovcloudapi.net

Expected behaviour The parameters are updated without any issues/errors.

Screenshots 2023-07-26 14_22_22-Azure Data Factory - Release-15 - Pipelines

Version of PowerShell module of:

Provide all files to reproduce the issue

NowinskiK commented 12 months ago

https://learn.microsoft.com/en-us/azure/azure-government/compare-azure-government-global-azure

NowinskiK commented 12 months ago

Currently adftools does support Azure Public environment only. However, if the required change would be only around Management URL - I will take this suggestion improvement.

cog-adf commented 11 months ago

Can you try by changing the URL or setting it as a parameter? I can then try deploying to see if anything else is causing issues.

NowinskiK commented 11 months ago

You can download the module locally, change the code and then install it from disc. Do more investigation and let me know here.