Error: az acr login- APIVersion 2019-12-01-preview is not available
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az acr login
Errors:
APIVersion 2019-12-01-preview is not available
Traceback (most recent call last):
python3.6/site-packages/knack/cli.py, ln 215, in invoke
cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
six.reraise(*sys.exc_info())
...
cli/command_modules/acr/_client_factory.py, ln 19, in cf_acr_registries
return get_acr_service_client(cli_ctx).registries
azure/mgmt/containerregistry/container_registry_management_client.py, ln 208, in registries
raise NotImplementedError("APIVersion {} is not available".format(api_version))
NotImplementedError: APIVersion 2019-12-01-preview is not available
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
az acr login --name {}
Expected Behavior
Environment Summary
Linux-4.15.0-1089-azure-x86_64-with-debian-stretch-sid
Python 3.6.9
Installer: PIP
azure-cli 2.8.0 *
azure-cli-ml 1.9.0
Extensions:
azure-cli-ml 1.9.0
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
az acr login - NotImplementedError: APIVersion 2019-12-01 ...
This is autogenerated. Please review and update as needed. Describe the bug Logging into ACR isn't working due to API Version Error Command ......
Read more >az acr build command fails "NotImplementedError: APIVersion ...
Related. 0 · Login to the Azure-container-service fails with error 'bool' object has no attribute 'rstrip' using Azure CLI.
Read more >Troubleshoot login to registry - Azure Container Registry
Unable to login to registry using docker login , az acr login , or both ... Azure CLI error Could not connect to...
Read more >azure-cli 2.4.0 - PyPI
az lock delete fix bug: az lock delete does not work on Microsoft. ... az acr login: Throw a CLIError if there are...
Read more >What do you need to know about Helm 2, Helm 3, and ACR?
You may want to use 'az acr login -n tsmacrtestwus2acrhelm --expose-token' to get an access token, which does not require Docker to be ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The issue is caused by incompatible versions of
azure-mgmt-containerregistry
on the Azure machine learning compute instance. Can you try the following workaround by using the azure-cli docker image or a virtual environment? https://github.com/Azure/azure-cli/issues/15627#issuecomment-716129300Close as this issue is caused by VM environment and workaround provided.