azureazure-cli

why az login stopped using browser and now uses "email and accounts". How to revert it?


I use az login for long time. It always showed Chrome browser for login. But now it uses "Email and accounts" windows feature.

When I execute az login the following popup window is shown:

login popup window

And the Task Manager shows "Emails and accounts" running:

taks manager show emails and accounts

It started behaving this way after executing az account clear, but I don't know if it is the cause.

Why it stopped showing browser?

And how can I revert it? I would like az login to show browser instead of email and accounts login popup.


Solution

  • I had this issue. Similar to Lesamel, I used the following to fix this on Windows:

    az config set core.enable_broker_on_windows=false
    

    See: Sign in with a browser

    The account clear did not work for me.