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` opens Edge (if installed) instead of default browser on linux

See original GitHub issue

az login always opened a window in my default browser, until I installed Edge. From that moment on, when I run az login, the message still states that it will open the login window in the default browser, but launches Edge instead.

This is happening on linux, I don’t know if it happens in Windows/Mac OS as well.

I’m running the latest version of az-cli from the dnf repo.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
PauloGDPeixotocommented, Feb 1, 2022

Just to confirm that the env var worked brilliantly, thank you very much! I’m closing this issue now.

3reactions
PauloGDPeixotocommented, Jan 31, 2022

That is strange. (FWIW, months ago I also observed no “Stay signed-in” when I was using an Edge Beta.) This time, I tested it on my Debian VM just now, with Firefox 91.5.0esr and Edge Stable 97.0.1072.69. I can see that “Stay signed-in” prompt.

There is something I did not mention: I’m logging in to a corporate domain, after inserting my email I am redirected to the corporate login of my employer.

Well, if you insist to, you can set env var BROWSER=/path/to/your/favorite/browser and then Azure CLI ('s auth component MSAL Python) will honor that.

Thank you very much for this!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sign in with Azure CLI — Login and Authentication
The Azure CLI's default authentication method for logins uses a web browser and access token to sign in. Run the login command. ......
Read more >
Connect-AzAccount change browser - Stack Overflow
The pop-up window is not the default browser, only az login is used to log in through the browser. In az login ,...
Read more >
az aks browse doesn't open browser automatically on WSL ...
It doesn't automatically open the browser from WSL2 like it does in macOS and Linux. So you have to CTRL + Click the...
Read more >
How to set the Default Browser from the Command Line?
Right now I have firefox as my default web browser. If i want google-chrome as default browser then I will type 3 and...
Read more >
Installing Browser Add-ons - Oracle Help Center
If your default browser is Mozilla Firefox, Google Chrome, or Microsoft Edge, you'll require a Smart View add-on for drill-through and web launch....
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