az cli cmd shall open default windows browser automatically #11605

Closed
opened 2026-01-31 02:52:22 +00:00 by claunia · 2 comments
Owner

Originally created by @cforce on GitHub (Nov 26, 2020).

 % az login
To sign in, use a web browser to open the page https://microsoft.com/deviceloginchina and enter the code ?? to authenticate.
use a web browser to open the page https://microsoft.com/deviceloginchina


```Is there anyway to let call the windows default browser within wls insteaf of manually to force device login.?
Originally created by @cforce on GitHub (Nov 26, 2020). ``` % az login To sign in, use a web browser to open the page https://microsoft.com/deviceloginchina and enter the code ?? to authenticate. use a web browser to open the page https://microsoft.com/deviceloginchina ```Is there anyway to let call the windows default browser within wls insteaf of manually to force device login.?
Author
Owner

@skyline75489 commented on GitHub (Nov 27, 2020):

This isn't really a terminal issue. The azure cli repo is https://github.com/Azure/azure-cli .

By the way if you're using the latest preview version, you should be able to Ctrl+click the URL to open it in default browser.

@skyline75489 commented on GitHub (Nov 27, 2020): This isn't really a terminal issue. The azure cli repo is https://github.com/Azure/azure-cli . By the way if you're using the latest preview version, you should be able to Ctrl+click the URL to open it in default browser.
Author
Owner

@zadjii-msft commented on GitHub (Nov 29, 2020):

I'm not sure that there is a way to make a browser within WSL the default browser on Windows. With the COM registrations that would need to happen, I'm pretty confident that it's not possible, unfortunately. I suppose someone could hypothetically create a shim application that would act as a browser on Windows, but really just invoke the WSL browser with the correct arguments, but the place for that discussion probably isn't on this repo 😄 You'll either have to use your default Windows browser, or copy/paste the path into the browser running on WSL, sorry.

@zadjii-msft commented on GitHub (Nov 29, 2020): I'm not sure that there is a way to make a browser within WSL the default browser on Windows. With the COM registrations that would need to happen, I'm pretty confident that it's _not_ possible, unfortunately. I suppose someone could hypothetically create a shim application that would act as a browser on Windows, but really just invoke the WSL browser with the correct arguments, but the place for that discussion probably isn't on this repo 😄 You'll either have to use your default Windows browser, or copy/paste the path into the browser running on WSL, sorry.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#11605