Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add-AzureAccount : The given key was not present in the dictionary

In Microsoft Azure PowerShell, when I run the Add-AzureAccount command I get this error:

Add-AzureAccount : The given key was not present in the dictionary.

Does anyone know how to fix this error?

I have an Azure Account. I am using Azure PowerShell version 0.8.16 and Windows 7 Service Pack 1.

like image 464
Scott Brown Avatar asked Apr 24 '15 07:04

Scott Brown


1 Answers

I found the answer to my problem here

http://blogs.msdn.com/b/devfish/archive/2015/02/12/get-azurevm-your-azure-credentials-have-not-been-set-up-or-have-expired-please-run-add-azureaccount-to-set-up-your-azure-credentials.aspx

The steps to fix the problem are as follows:

  1. Remove-AzureAccount

  2. Clear-AzureProfile

  3. Add-AzureAccount

like image 99
Scott Brown Avatar answered Oct 20 '22 09:10

Scott Brown