【发布时间】:2016-09-23 19:53:00
【问题描述】:
在 Microsoft Azure PowerShell 中,当我运行 Add-AzureAccount 命令时出现以下错误:
Add-AzureAccount : 给定的键不在字典中。
有人知道如何解决这个错误吗?
我有一个 Azure 帐户。 我正在使用 Azure PowerShell 0.8.16 版和 Windows 7 Service Pack 1。
【问题讨论】:
标签: powershell azure
在 Microsoft Azure PowerShell 中,当我运行 Add-AzureAccount 命令时出现以下错误:
Add-AzureAccount : 给定的键不在字典中。
有人知道如何解决这个错误吗?
我有一个 Azure 帐户。 我正在使用 Azure PowerShell 0.8.16 版和 Windows 7 Service Pack 1。
【问题讨论】:
标签: powershell azure
我在这里找到了我的问题的答案
解决问题的步骤如下:
删除-AzureAccount
清除-AzureProfile
添加-AzureAccount
【讨论】:
我使用了AddAzureRmAccount 而不是AddAzureAccount,它确实有效。我不知道根本原因,我仍在深入研究。一旦我对可能的根本原因有了具体的了解,我会更新这个答案。
【讨论】: