Skip to content

az login fails when connecting to https://eastus2euap.management.azure.com/ #19548

@msaranga

Description

@msaranga

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug

Typed Az Login --debug

throwed following error

cli.azure.cli.core.azclierror: <urllib3.connection.HTTPSConnection object at 0x044321C0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
az_command_data_logger: <urllib3.connection.HTTPSConnection object at 0x044321C0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Following is Az version
C:\WINDOWS\system32>az version
{
"azure-cli": "2.28.0",
"azure-cli-core": "2.28.0",
"azure-cli-telemetry": "1.0.6",
"extensions": {
"databricks": "0.7.2"
}
}

To Reproduce
Run az login

Expected behavior
Need to get authenticated and get access token to my subscription

Environment summary
On my Local Machine.

Additional context

My Machine in Corp Network and it is in Seattle US. I believe request should gone to westus2 of arm region.
While looking into logs, Az login is internally calling https://eastus2euap.management.azure.com/tenants?api-version=2019-11-01

When we call above URL (https://eastus2euap.management.azure.com/tenants?api-version=2019-11-01), we see cli.azure.cli.core.azclierror: <urllib3.connection.HTTPSConnection object at 0x044321C0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
az_command_data_logger: <urllib3.connection.HTTPSConnection object at 0x044321C0>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Why is it going to eastus2euap instead of management.azure.com?

Metadata

Metadata

Assignees

Labels

Accountaz login/account

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions