az login hangs
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az login
Errors: Running ‘az login’ hangs. It does not exit with a timeout or error code.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
az login- browser opens
- click on user name and log in
- After selecting user, close browser or wait 10 seconds for redirect
- az login command still has not returned
Expected Behavior
After clicking username in browser, it should perform a login and return control to the user in powershell environment
Environment Summary
Windows-10-10.0.17134-SP0
Python 3.6.6
Shell: powershell.exe
azure-cli 2.0.63 *
Additional Context
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
az login hangs - Microsoft Q&A
Hi, I have an issue with the az login. ... az login might hang when more than one instances of az login are...
Read more >az devops login hangs - Stack Overflow
Every time I execute the login subcommand the window hangs and locks up, I have to restart the PowerShell ISE to try again....
Read more >Using the Azure Devops CLI in a Deployment Pipeline (Can't ...
I can do an "az login" using a PAT that I map to this environment variable: ... az devops login. When I run...
Read more >Az Login Hangs - LoginsLink
Find the official link to Az Login Hangs. Explore FAQs, troubleshooting, and users feedback about stackoverflow.com.
Read more >azure cli not able login using command line option - Server Fault
For cross-check, try 'az login' to authenticate through browser. When I use browser authentication method with the same username and password I ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This was happening to us until we entered these at the CLI:
Howdy @apsteger,
We’ve seen issues like this before when folks are using the CLI behind a VPN or proxy. Please checkout the following troubleshooting steps, and let me know if you’re still encountering this issue: https://github.com/Azure/azure-cli/blob/dev/doc/use_cli_effectively.md#working-behind-a-proxy