-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az network dns comands failure after upgrade to 2.50 #26814
Comments
Hi @mbv, This is a known issue. Please follow #23985 (comment) to get temporary workaround. If you feel that further discussion is needed, please add a comment with the text |
Thank you for opening this issue, we will look into it. |
/clibot unresolve |
Even am facing this issue - Is there any ETA for the fix ? |
I also ran into this issue today. I was required to remove latest azure-cli from homebrew and install via pip, since homebrew does not allow you to select a lower version! I ended up going a couple of releases back, and that was good enough for my purposes. Version 2.49.0 is also available.
|
I did: dnf install azure-cli-2.49.0-1.el9 -y as a workaround instead of dnf install azure-cli -y it worked for me |
Facing the same issue
|
We are also facing the same issue, it broke the deployment pipelines. Will specify a previous version in the build agents until this is resolved. Is there any ETA? |
same issue here. |
I think because the dns functions in Downgrading to a previous version of the Azure CLI using Homebrew seems impossible, so I'm stuck for the moment. |
That version 2.50.0 has been rolled out to Microsoft hosted agents on Azure DevOps and now many of our pipelines fails. Downgrade is not an option because I need to do it in dozens of pipelines and it add 2.5 minutes extra time to run to each pipeline. When do you plan to fix this issue. |
We are running into the same problems with many of our deployments in a large enterprise organisation due to this issue.
Is there an ETA for the fix for this issue? Thank you in advance |
have just hit the same issue using the AzureCLI@2 task in Azure DevOps pipelines, which I don't think can easily be downgraded to a previous version of the CLI. |
Just confirmed that Azure Pipelines Agent can use an older version by downgrading using Python Pip package manager. Command: python3 -m pip install --upgrade --force azure-cli==2.49.0 Azure Pipeline Step YAML that worked# Install specific Azure CLI version
# Reason: There is a bug in version 2.50.0 that causes the "az network dns" commands to fail
# Reference: https://github.com/Azure/azure-cli/issues/26814
- script: |
# CLI_VERSION=2.49.0
# curl -O https://azurecliprod.blob.core.windows.net/releases/azure-cli_${CLI_VERSION}-1~buster_all.deb
# sudo dpkg -i azure-cli_${CLI_VERSION}-1~buster_all.deb
# az --version
# curl -L https://aka.ms/InstallAzureCli | bash
# List available versions
# apt-cache madison azure-cli
# apt-cache policy azure-cli; sudo apt-get install -y "azure-cli=2.49.0-1~jammy"
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade --force azure-cli==2.49.0
az --version
displayName: 'Install specific Azure CLI version' |
We've encountered this issue kind of issue many times for various different CLI commands during the past 12 months (which is very disappointing). The following command also works for downgrading the Azure CLI on ubuntu-20.04 Azure DevOps hosted agents: - task: PowerShell@2
displayName: 'Revert to az cli version 2.49.0'
inputs:
targetType: 'inline'
pwsh: true
script: |
pip install -Iv azure-cli==2.49.0 --extra-index-url https://azurecliprod.blob.core.windows.net/edge |
What would a workaround for GitHub Workflow be? |
@lbruun Adding this step to our workflow resolved our issue: - name: Downgrade azure-cli
run: python3 -m pip install --upgrade --force azure-cli==2.49.0 |
Describe the bug
After upgrade on azure cli 2.50.0 stop working commands related to
az network dns
, Microsoft.Network is registeredRelated command
az network dns record-set a show
Errors
(NoRegisteredProviderFound) No registered resource provider found for location 'global' and API version '2023-07-01-preview' for type 'dnszones/A'. The supported api-versions are '2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-09-15-preview, 2017-10-01, 2018-03-01-preview, 2018-05-01'. The supported locations are ', global'.
Code: NoRegisteredProviderFound
Message: No registered resource provider found for location 'global' and API version '2023-07-01-preview' for type 'dnszones/A'. The supported api-versions are '2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-09-15-preview, 2017-10-01, 2018-03-01-preview, 2018-05-01'. The supported locations are ', global'.
Issue script & Debug output
cli.knack.cli: Command arguments: ['network', 'dns', 'record-set', 'a', 'show', '--resource-group', '{hidden}', '--zone-name', '{hidden}', '--name', '{hidden}', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x105b4de10>, <function OutputProducer.on_global_arguments at 0x105bdadd0>, <function CLIQuery.on_global_arguments at 0x105c44280>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'network': ['azure.cli.command_modules.network', 'azure.cli.command_modules.privatedns']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: network 0.296 115 355
cli.azure.cli.core: privatedns 0.002 14 66
cli.azure.cli.core: Total (2) 0.298 129 421
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: Total (0) 0.000 0 0
cli.azure.cli.core: Loaded 128 groups, 421 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : network dns record-set a show
cli.azure.cli.core: Command table: network dns record-set a show
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x1066ee8c0>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/Users/{hidden}/.azure/commands/2023-07-04.11-53-37.network_dns_record-set_a_show.66317.log'.
az_command_data_logger: command args: network dns record-set a show --resource-group {} --zone-name {} --name {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x106703250>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x1067e8f70>, <function register_cache_arguments..add_cache_arguments at 0x1067e9090>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x105bdae60>, <function CLIQuery.handle_query_parameter at 0x105c44310>, <function register_ids_argument..parse_ids_arguments at 0x1067e9000>]
cli.azure.cli.core.auth.persistence: build_persistence: location='/Users/{hidden}/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /Users/{hidden}/.azure/msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/{hidden}/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/{hidden}/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/{hidden}/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/{hidden}/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/{hidden}/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/{hidden}/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/{hidden}/kerberos', 'tenant_region_scope': 'NA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? False
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://management.core.windows.net//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 8e5059c9-d3d9-49a8-8a7f-7087b90c8bbf
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/{hidden}/resourceGroups/{hidden}/providers/Microsoft.Network/dnsZones/{hidden}/A/{hidden}?api-version=2023-07-01-preview'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'a5c9117a-1a50-11ee-b595-9e15d7563ae2'
cli.azure.cli.core.sdk.policies: 'CommandName': 'network dns record-set a show'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--resource-group --zone-name --name --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.50.0 (HOMEBREW) (AAZ) azsdk-python-core/1.26.0 Python/3.10.12 (macOS-13.4.1-arm64-arm-64bit)'
cli.azure.cli.core.sdk.policies: 'Authorization': '*****'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/{hidden}/resourceGroups/{hidden}/providers/Microsoft.Network/dnsZones/{hidden}/A/{hidden}?api-version=2023-07-01-preview HTTP/1.1" 400 359
cli.azure.cli.core.sdk.policies: Response status: 400
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-failure-cause': 'gateway'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'a36d0a08-fe1f-4235-8859-0d06dcfe7368'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'a36d0a08-fe1f-4235-8859-0d06dcfe7368'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'SWEDENCENTRAL:20230704T095338Z:a36d0a08-fe1f-4235-8859-0d06dcfe7368'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'Date': 'Tue, 04 Jul 2023 09:53:38 GMT'
cli.azure.cli.core.sdk.policies: 'Content-Length': '359'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"error":{"code":"NoRegisteredProviderFound","message":"No registered resource provider found for location 'global' and API version '2023-07-01-preview' for type 'dnszones/A'. The supported api-versions are '2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-09-15-preview, 2017-10-01, 2018-03-01-preview, 2018-05-01'. The supported locations are ', global'."}}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 663, in execute
raise ex
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 726, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/core/commands/init.py", line 697, in _run_job
result = cmd_copy(params)
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/core/aaz/_command.py", line 149, in call
return self._handler(*args, **kwargs)
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_show.py", line 27, in _handler
self._execute_operations()
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_show.py", line 67, in _execute_operations
self.RecordSetsGet(ctx=self.ctx)()
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/command_modules/network/aaz/latest/network/dns/record_set/_show.py", line 91, in call
return self.on_error(session.http_response)
File "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/core/aaz/_operation.py", line 332, in on_error
raise HttpResponseError(response=response, error_format=error_format)
azure.core.exceptions.HttpResponseError: (NoRegisteredProviderFound) No registered resource provider found for location 'global' and API version '2023-07-01-preview' for type 'dnszones/A'. The supported api-versions are '2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-09-15-preview, 2017-10-01, 2018-03-01-preview, 2018-05-01'. The supported locations are ', global'.
Code: NoRegisteredProviderFound
Message: No registered resource provider found for location 'global' and API version '2023-07-01-preview' for type 'dnszones/A'. The supported api-versions are '2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-09-15-preview, 2017-10-01, 2018-03-01-preview, 2018-05-01'. The supported locations are ', global'.
cli.azure.cli.core.azclierror: (NoRegisteredProviderFound) No registered resource provider found for location 'global' and API version '2023-07-01-preview' for type 'dnszones/A'. The supported api-versions are '2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-09-15-preview, 2017-10-01, 2018-03-01-preview, 2018-05-01'. The supported locations are ', global'.
Code: NoRegisteredProviderFound
Message: No registered resource provider found for location 'global' and API version '2023-07-01-preview' for type 'dnszones/A'. The supported api-versions are '2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-09-15-preview, 2017-10-01, 2018-03-01-preview, 2018-05-01'. The supported locations are ', global'.
az_command_data_logger: (NoRegisteredProviderFound) No registered resource provider found for location 'global' and API version '2023-07-01-preview' for type 'dnszones/A'. The supported api-versions are '2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-09-15-preview, 2017-10-01, 2018-03-01-preview, 2018-05-01'. The supported locations are ', global'.
Code: NoRegisteredProviderFound
Message: No registered resource provider found for location 'global' and API version '2023-07-01-preview' for type 'dnszones/A'. The supported api-versions are '2015-05-04-preview, 2016-04-01, 2017-09-01, 2017-09-15-preview, 2017-10-01, 2018-03-01-preview, 2018-05-01'. The supported locations are ', global'.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x1066eeb00>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 0.877 seconds (init: 0.086, invoke: 0.791)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 4231 in cache
telemetry.check: Returns Positive.
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "/opt/homebrew/Cellar/azure-cli/2.50.0/libexec/bin/python /opt/homebrew/Cellar/azure-cli/2.50.0/libexec/lib/python3.10/site-packages/azure/cli/telemetry/init.py /Users/{hidden}/.azure"
telemetry.process: Return from creating process
telemetry.main: Finish creating telemetry upload process.
Expected behavior
output dns records info
Environment Summary
azure-cli 2.50.0
core 2.50.0
telemetry 1.0.8
Extensions:
azure-devops 0.26.0
Dependencies:
msal 1.22.0
azure-mgmt-resource 23.1.0b2
Python (Darwin) 3.10.12 (main, Jun 20 2023, 19:43:52) [Clang 14.0.3 (clang-1403.0.22.14.1)]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response
The text was updated successfully, but these errors were encountered: