Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`az login` suddenly stopped working in my command prompt [closed]

When I do az login in the command prompt opened with Administrator privileges, getting weird error which I didn't get this before:

Please select the account you want to log in with. User cancelled the Accounts Control Operation.. Status: Response_Status.Status_UserCanceled, Error code: 0, Tag: 528315210 Please explicitly log in with: az login

In Googling, I found the similar issue is reported in GitHub and Open State. Can we have any alternative fix to this issue..!


1 Answers

Apparently, this behaviour is specific to Windows. Please follow the following instructions to fix the issue.

  1. Log out of all active Azure accounts.

    az account clear

  2. Disable Windows broker config of Azure.

    az config set core.enable_broker_on_windows=false

  3. Log back into your Azure account.

    az login

like image 79
Dilan Perera Avatar answered Nov 21 '25 08:11

Dilan Perera