az acr login - NotImplementedError: APIVersion 2019-12-01-preview is not available
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Logging into ACR isn’t working due to API Version Error
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:
az acr login -n {}
Expected Behavior
Environment Summary
Linux-4.15.0-1082-azure-x86_64-with-debian-stretch-sid
Python 3.6.9
Installer: PIP
azure-cli 2.6.0 *
azure-cli-ml 1.5.0
Extensions:
azure-cli-ml 1.5.0
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
az acr build command fails "NotImplementedError: APIVersion ...
Looks like updating the cli version solves the issue. I faced the same issue. Upgraded azure cli version using the below command.
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 >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
hi @ezwiefel does above solution work for you? let us know how it works. it’s an issue of specific version of azure cli, fixed in latest releases.
Please try this workaround.