-
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
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
Describe the bug
Running
az loginon WSL2 (Ubuntu 22.04) does not open the browser. It just hangs without any output or URL to manually navigate to.No browser opens, no URL displayed, command hangs indefinitely.
Environment
Steps to reproduce
az loginExpected behavior
Browser should open automatically for interactive login, or a device code URL should be displayed.
Workaround attempted
Tried
az login --use-device-codewhich works, but defaultaz loginshould work too.