-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 open browser, but then it hangs #26196
Comments
Thank you for opening this issue, we will look into it. |
You issue seems to be different from #26180, since both According to the debug log, it fails at
Could you verify if you can connect to https://login.microsoftonline.com/ with Python:
Also, could you also share the output of both |
Yes, I can confirm that I am able to connect to https://login.microsoftonline.com/ with Python: The login to the browser behaves exactly the same as when I login from windows (powershell), except that for windows powershell gets the response and manages to actually log in. Using a service principal does not work either: Debug logs: az login --debug
az login --use-device-code --debug
|
The weird thing is these 2 pieces of logs fail at different network requests. The first one fails at a request to AAD:
The second one succeeds at request to AAD (
but fails at a request to ARM:
It really looks like WSL network issue to me. |
@MPettersen where you able to solve the issue? |
This is autogenerated. Please review and update as needed.
Describe the bug
When running either
az login
oraz login --use-device-code
I get the same result.It opens the browser I login through SSO, everything looks right from the browser side, but in the terminal it is simply stuck.
And a few minutes later the error shown below appears.
I have tried to use multiple versions of the azure-cli, different versions of python.
And I also did a clean install of the WSL.
When running in debug it does receive a response from the browser with the client info, but it's not able to use this any further.
This works fine when running from powershell in windows, but I get this error every time in WSL.
This used to work earlier, but now for some reason it no longer does.
Command Name
az login
Errors:
To Reproduce:
Steps to reproduce the behavior.
az login
Expected Behavior
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: