az acr login - fail
See original GitHub issueBug Description
Problem with login
Command Name
az acr login
Errors:
'NoneType' object has no attribute '__name__'
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 659, in execute
raise ex
cli/core/commands/__init__.py, ln 722, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 715, in _run_job
six.reraise(*sys.exc_info())
...
cli/core/commands/parameters.py, ln 136, in get_resources_in_subscription
rcf = get_mgmt_service_client(cli_ctx, ResourceType.MGMT_RESOURCE_RESOURCES)
cli/core/commands/client_factory.py, ln 74, in get_mgmt_service_client
**kwargs)
cli/core/commands/client_factory.py, ln 176, in _get_mgmt_service_client
logger.debug('Getting management service client client_type=%s', client_type.__name__)
AttributeError: 'NoneType' object has no attribute '__name__'
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- az login
- az account set --subscription *********
- az acr login -n **************
Expected Behavior
- login
Environment Summary
Linux-5.14.21-150400.24.21-default-x86_64-with-glibc2.3.4
Python 3.6.15
Installer: PIP
OponSUSE 15.4
azure-cli 2.17.1 *
Additional Context
Issue Analytics
- State:
- Created a year ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Troubleshoot login to registry - Azure Container Registry
Unable to access a registry using az acr login and you receive error CONNECTIVITY_REFRESH_TOKEN_ERROR. Access to registry was denied. Response ...
Read more >az acr login failed · Issue #23987 · Azure/azure-cli
We find that az acr login could work if we create a symbol link of docker.exe at current dir. Formerly it also works...
Read more >az acr login results in error: can't find token from MSAL cache
Try clearing the cache from the .azure folder from the home directory /var/root; Also clear the cache using MSAL.net.
Read more >azure-cli
az acr login fails on mac# ... Error saving credentials: error storing credentials - err: exit status 1, out: `The user name or...
Read more >Unable To Get AAD Authorization Token With Message
To Fix this issue, Try to run sudo az login first and then try sudo az acr login –name acr001. You should get...
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
I tried using the above CLI version and run the steps to reproduce but was unable to, everything succeeded properly. The package issues outlined in the error could however to indicate an improper CLI installation
close this issue pls