AZ CLI does not work with IPV6
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
### 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 https://github.com/Azure/azure-cli/issues/31221#issuecomment-2788213408
### 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 https://github.com/Azure/azure-cli/issues/31221#issuecomment-3255363332
Contributor guide
Assessment
This issue has not been assessed yet.