-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az login cannot open web browser on WSL2 + Ubuntu 22.04 #27879
Copy link
Copy link
Open
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 teamInstallationact-identity-squadact-platform-engineering-squadquestionThe 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
Milestone
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 teamInstallationact-identity-squadact-platform-engineering-squadquestionThe 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
az logincannot open web browser on WSL2 + Ubuntu 22.04.Upstream issues:
acquire_token_interactivecannot open web browser on WSL2 + Ubuntu 22.04 AzureAD/microsoft-authentication-library-for-python#625To Reproduce
With
xdg-utilsinstalled:Without
xdg-utilsinstalled:Additional context
Windows Terminal supports Ctrl+Click to open hyperlinks, so the user can Ctrl+Click the URL shown in the error to open the web browser and the rest steps work as usual.
Some workarounds are provided in microsoft/WSL#8892 such as installing
wslu.