Skip to content

az login doesn't use the default browser on Linux and prefers microsoft-edge #33043

@Glandos

Description

@Glandos

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

Metadata

Metadata

Assignees

Labels

Accountaz login/accountAuto-AssignAuto assign by botAzure 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.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions