bebound / azure-cli

Azure Command-Line Interface
MIT License
0 stars 0 forks source link

az login --identity error: requests.exceptions.HTTPError #20

Open bebound opened 1 year ago

bebound commented 1 year ago

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az login --identity -u /subscriptions/<Subscr>/resourcegroups/TEST_MS/providers/Microsoft.ManagedIdentity/userAssignedIdentities/<id>

Errors:

Traceback (most recent call last):
python3/dist-packages/knack/cli.py, ln 206, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 608, in execute
    raise ex
cli/core/commands/__init__.py, ln 666, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 659, in _run_job
    six.reraise(*sys.exc_info())
...
python3/dist-packages/msrestazure/azure_active_directory.py, ln 649, in get_token
    token_entry = self._retrieve_token_from_imds_with_retry(resource)
python3/dist-packages/msrestazure/azure_active_directory.py, ln 704, in _retrieve_token_from_imds_with_retry
    raise HTTPError(request=result.request, response=result.raw)
requests.exceptions.HTTPError

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

Environment Summary

Linux-5.15.0-1030-azure-x86_64-with-glibc2.29
Python 3.8.10
Shell: bash

azure-cli 2.0.81

Extensions:
azure-devops 0.17.0

Additional Context

Copy from https://github.com/Azure/azure-cli/issues/25122

similar-bot-test[bot] commented 1 year ago
Find similar issue https://github.com/Azure/azure-cli/issues/9727.
Issue title az login --identity failed without an indicative error
Create time 2019-06-19
Comment number 2
bebound commented 1 year ago

Match is correct, but solved by unofficial pacakge https://github.com/Azure/azure-cli/issues/19640.