question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az acr login - NotImplementedError: APIVersion 2019-12-01-preview is not available

See original GitHub issue

This 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:closed
  • Created 3 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
yungezzcommented, Mar 8, 2021

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.

0reactions
fengzhou-msftcommented, Nov 2, 2020

Please try this workaround.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found