bebound / azure-cli

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

az login --identity : doesn't work #28

Open bebound opened 1 year ago

bebound commented 1 year ago

This is autogenerated. Please review and update as needed.

Describe the bug

Cannot execute: az login --identity while "az login" works

Command Name az login

Errors:

HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /metadata/identity/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f04bde3e430>: Failed to establish a new connection: [Errno 110] Connection timed out'))
Traceback (most recent call last):
python3/dist-packages/urllib3/connection.py, ln 159, in _new_conn
    conn = connection.create_connection(
...
    raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='169.254.169.254', port=80): Max retries exceeded with url: /metadata/identity/oauth2/token?resource=https%3A%2F%2Fmanagement.core.windows.net%2F&api-version=2018-02-01 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f04bde3e430>: Failed to establish a new connection: [Errno 110] Connection timed out'))

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-58-generic-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/25194

similar-bot-test[bot] commented 1 year ago
Find similar issue https://github.com/Azure/azure-cli/issues/14587.
Issue title Az login with identity fails
Create time 2020-07-30
Comment number 5