Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple_Matching_Token_Detected: Add-AzureAccount in Powershell

Tags:

azure

When I try to run "Add-AzureAccount" command in the powershell, I encountered the error below: I am using the latest Azure powershell version 0.87

Add-AzureAccount : multiple_matching_tokens_detected: The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements (e.g. UserId) At line:1 char:1

  • Add-AzureAccount
  • ~~~~~~~~~~~~~~~~
    • CategoryInfo : CloseError: (:) [Add-AzureAccount], AadAuthenticationFailedException
    • FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.AddAzureAccount
like image 882
juvchan Avatar asked Nov 23 '25 19:11

juvchan


1 Answers

Go to C:\Users\<user>\AppData\Roaming\Windows Azure Powershell and delete WindowsAzureProfile.xml. That helped me.

like image 127
Michael Baranov Avatar answered Nov 25 '25 09:11

Michael Baranov