Skip to content

AZ CLI does not work with IPV6 #32062

@ThomasShih

Description

@ThomasShih

Describe the bug

az login --debug hangs on urllib3.connectionpool: Starting new HTTPS connection (1): login.microsoftonline.com:443 when I'm using ipv6.

Related command

az login --debug
az logout --debug
etc

Errors

No error, just silently hangs

Issue script & Debug output

Same as earlier issue #31221 (comment)

Expected behavior

AZ login does not hang

Environment Summary

azure-cli 2.77.0

core 2.77.0
telemetry 1.1.0

Dependencies:
msal 1.34.0b1
azure-mgmt-resource 23.3.0

Python location '/opt/homebrew/Cellar/azure-cli/2.77.0/libexec/bin/python'
Config directory '/Users/tshih/.azure'
Extensions directory '/Users/tshih/.azure/cliextensions'

Python (Darwin) 3.13.7 (main, Aug 14 2025, 11:12:11) [Clang 17.0.0 (clang-1700.0.13.3)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context

I had to turn off IPV6 on my access point in order to authenticate. See #31221 (comment)

Metadata

Metadata

Assignees

Labels

Accountaz login/accountAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamPossible-SolutionSimilar-Issuecustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions