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

后端 未结 2 1302
南笙
南笙 2021-01-12 05:42

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 dicti

相关标签:
2条回答
  • 2021-01-12 06:17

    I used AddAzureRmAccount instead of AddAzureAccount and it worked. I don't know the root cause and I am still digging into this. I will update this answer once I have something concrete on the lines of a probable root cause.

    0 讨论(0)
  • 2021-01-12 06:31

    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

    0 讨论(0)
提交回复
热议问题