【问题标题】:Error when executing Get-AzureStorageAccount in azure powershell在 azure powershell 中执行 Get-AzureStorageAccount 时出错
【发布时间】:2014-09-29 13:38:41
【问题描述】:

这是错误

PS C:\Windows\system32> Get-AzureStorageAccount
Get-AzureStorageAccount : Value cannot be null.
Parameter name: resource
At line:1 char:1
+ Get-AzureStorageAccount
+ ~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Get-AzureStorageAccount], AadAuthenticationFailedException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Utilities.Common.Authentication.AadAuthenticationFailedException,Microsoft.WindowsAzure.Commands.ServiceManagement.StorageServices.GetAzureStorageAccountCommand

我遇到了同样的错误

获取-AzureLocation, 获取-Azure网站

我已经导入了我的设置文件,Get-AzureSubscription 工作正常,并为我提供了所有正确的信息。

【问题讨论】:

  • 你运行Select-AzureSubscription first了吗? Get-AzureSubscription -current 的输出是否包含证书?
  • 当您导入设置文件时,订阅会自动设置为当前和默认。是的,我可以看到证书。
  • 我可以看到我的计算机有问题,因为我可以在另一台计算机上执行相同的操作并且它工作正常。一些旧凭据被缓存。可能是。

标签: powershell azure azure-powershell


【解决方案1】:

这解决了我的问题,从 Microsoft 支持论坛获得。

就我的研究而言,该问题可能与某些帐户的缓存有关。如果只是添加不起作用,我建议您删除并重新添加订阅:

本文将为您提供相关信息:

http://msdn.microsoft.com/en-us/library/dn495268.aspx

【讨论】:

    猜你喜欢
    • 2019-08-29
    • 2016-08-05
    • 2014-08-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-02-05
    • 1970-01-01
    • 2019-08-15
    相关资源
    最近更新 更多