【发布时间】: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