-
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
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
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
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 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
When using
az login, Microsoft Edge is preferred over my default browser. I've installedmicrosoft-edge-betafrom Microsoft APT repository.According to the documentation,
azshould 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%20browserRelated command
az loginErrors
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/authorizewhich 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