question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az login hangs on WSL

See original GitHub issue

Describe the bug

Running az login hangs, no output is shown. This is on Debian 10 over WSL on Windows 1809.

Running az login --debug logs the following link, opening manually and logging in works fine. Open browser with url: https://login.microsoftonline.com/common/oauth2/authorize?....

Command Name az login

Errors: None

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • az login

Expected Behavior

The browser opens.

Environment Summary

Linux-4.4.0-17763-Microsoft-x86_64-with-debian-10.4
Python 3.6.10
Installer: DEB

azure-cli 2.9.1

Additional Context

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
gxtailloncommented, Aug 1, 2020

I’ll use az login --use-device-code as that also works. I’m good to close this issue provided we get the change from #14505.

Thank you

1reaction
X-Deancommented, Oct 18, 2022

az login hangs on wsl2

Read more comments on GitHub >

github_iconTop 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 >
Az Login Hangs - LoginsLink
Describe the bug Running az login hangs, no output is shown. This is on Debian 10 over WSL on Windows 1809. Running az...
Read more >
az aks browse doesn't open browser automatically on WSL ...
I would expect it to work like az login and open up a new tab in default browser. But somehow it doesn't work...
Read more >
Azure CLI Installation on Linux - Cytron Technologies
Run the Azure CLI with the az command. To sign in, use the az login command. ... The CLI relies on some features...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found