-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az login doesn't use the default browser on Linux and prefers microsoft-edge #33043
Description
Describe the bug
When using az login, Microsoft Edge is preferred over my default browser. I've installed microsoft-edge-beta from Microsoft APT repository.
According to the documentation, az should use my default browser: https://learn.microsoft.com/en-us/cli/azure/get-started-with-azure-cli?view=azure-cli-latest#:~:text=if%20azure%20cli%20can%20open%20your%20default%20browser
Related command
az login
Errors
No error
Issue script & Debug output
N/A
Expected behavior
It should open the login page with xdg-open https://login.microsoftonline.com/organizations/oauth2/v2.0/authorize which should then open my default browser.
Environment Summary
azure-cli 2.84.0
core 2.84.0
telemetry 1.1.0
Extensions:
interactive 1.0.0b1
Dependencies:
msal 1.35.1
azure-mgmt-resource 25.0.0
Python location '/usr/bin/python3'
Config directory '/home/glandos/.azure'
Extensions directory '/home/glandos/.azure/cliextensions'
Python (Linux) 3.13.12 (main, Feb 4 2026, 15:06:39) [GCC 15.2.0]
Legal docs and information: aka.ms/AzureCliLegal
Your CLI is up-to-date.
Additional context
No response