-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az login does not open browser automatically on WSL2 #33092
Copy link
Copy link
Closed
Labels
Accountaz login/accountaz login/accountAuto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamLoginPossible-SolutionSimilar-Issueact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Description
Describe the bug
Running az login on WSL2 (Ubuntu 22.04) does not open the browser. It just hangs without any output or URL to manually navigate to.
$ az login
No browser opens, no URL displayed, command hangs indefinitely.
Environment
- Azure CLI: 2.67.0
- OS: WSL2 Ubuntu 22.04 on Windows 11
- Python: 3.10.12
Steps to reproduce
- Install Azure CLI on WSL2
- Run
az login - Wait - browser never opens
Expected behavior
Browser should open automatically for interactive login, or a device code URL should be displayed.
Workaround attempted
Tried az login --use-device-code which works, but default az login should work too.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Accountaz login/accountaz login/accountAuto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamLoginPossible-SolutionSimilar-Issueact-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that