Share via

Issues with az login

Joe Comeau 20 Reputation points
2026-02-06T18:53:05.54+00:00

Cluster/node is having issues logging in

Azure version: 2.67.0

Entered the az login command getting this error

error:
az : WARNING: Select the account you want to log in with. For more information on login with Azure CLI, see

https://go.microsoft.com/fwlink/?linkid=2271136

+ CategoryInfo          : NotSpecified: (WARNING: Select...?linkid=2271136:String) [], RemoteException

+ FullyQualifiedErrorId : NativeCommandError

ERROR: Unexpected exception while waiting for accounts control to finish: '(pii)'. Status:

Response_Status.Status_Unexpected, Error code: -2147221164, Tag: 528315211

Please explicitly log in with:

az login

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. VEMULA SRISAI 9,430 Reputation points Microsoft External Staff Moderator
    2026-02-06T19:10:08.73+00:00

    Hello Joe Comeau,

    The issue you’re seeing is caused by the Windows Broker (WAM) login mechanism in Azure CLI. Please follow the steps below to fix it:

    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

    For your reference, please follow this document: https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli-interactively?view=azure-cli-latest#sign-in-with-web-account-manager-wam-on-windows

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.