New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
az login hangs #9852
Comments
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 |
This was happening to us until we entered these at the CLI:
|
I'm also encountering an issue where "az login" hangs in Visual Studio Code (v1.36.0) when running in a Powershell context. When I run "az login" it starts my default browser (Edge), I then select my user account (@Hotmail) after which the browser just sits there with the loading animation. The VS Code window also never returns or timeouts from "running Powershell command". If possible I would like to be able to use VS Code as my editor for my Azure CLI scripts but I'm not sure what is going wrong. |
Thanks @marstr , I'll give it a try. |
I'm going to close this for now, but I'll be happy to re-open if more information comes to light. @tommysundling, I'd also try messing around with the troubleshooting guide. |
I'm also facing this issue and it hangs wither AFTER I do my 2-factor auth and the login windows in the browser stays at the progress bar screen or it says you are login in and moves on to the Azure CLI homepage. In either case, there is no further output on the Powershell Windows, even with --debug enabled. I've made sure that I am logged out before attempting another login, too. The last line of output, even with --debug enabled, is: |
add to S172 |
This issue has been fixed in #10955. If it persists, please open a new issue. |
This 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.
az login
Expected Behavior
After clicking username in browser, it should perform a login and return control to the user in powershell environment
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: