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 forever, redirects to localhost and hits ERR_CONNECTION_REFUSED in browser #26180
Comments
Thank you for opening this issue, we will look into it. |
Thanks! I forgot to mention that I also cannot sign in with $ az login --use-device-code
To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code REDACTED to authenticate.
$ az account show
Please run 'az login' to setup account. |
I don't have a problem with
Even more perplexing to me is when I add
Even though
Method of install: Brew (Well actually it was pip, but then I went the brew route after the pip installation started hanging) I've had two other colleges try the same command and they report the same behavior. |
@luisnaranjo733 Can you show me the output of @andrewegel I can't repro. Since it is not related to this issue, could you please create a new issue so we can better track it? |
Shared the logs privately :) Please let me know if you need anything else to assist with troubleshooting. |
@bebound Hey, I met the same issue today, but it rediect me to another port(everytime I login looks like it will redirect to a different port) This is the output from
I tried #10426 (comment) but it didn't work for me. |
More users are encountering this issue. Since our program remains unchanged, I believe the issue may be related to WSL or the browser. |
This is likely microsoft/WSL#9947, installing the latest wsl via github releases may solve the issue. |
I also found a similar issue: microsoft/WSL#9805 |
Thanks! I use powershell to login and it works, it looks like a wsl problem. I will update my wsl and try again later. |
Yes, after updating wsl to latest, it works now. |
Same - just updated to 1.2.5 and can confirm this bug is fixed Should I close this issue? |
I am having the same issue. Redirects me to localhost after account selection.
Azure Cli WSL
|
Same as @adnan-ashfaq here, can you reopen this issue? Thanks |
Sorry, just found this and it worked for me |
In my case, it was mismatch of MFA flow. I was working with Azure B2C AD related IaC, while my azure account in the portal was signed into different directory. Azure B2C AD has it's own MFA., so if you are logged into different directory in portal, and you are running |
This is autogenerated. Please review and update as needed.
Describe the bug
az login hangs forever
Command Name
az login
Errors:
Sign in hangs forever and never finishes
To Reproduce:
Attempt to sign in
Expected Behavior
Sign in succeeds
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: