我正在使用Azure中的经典资源。我正在运行Azure powershell版本2.0.1(更新它以查看是否解决了下面的问题)。 我想查看我的VIPS列表,并在powershell中运行了一些脚本。
$deployment = Get-AzureDeployment -ServiceName servicenamehere
$deployment.VirtualIPs
我现在收到错误
Get-AzureDeployment : Account with name '' does not exist.
Parameter name: accountName
At line:1 char:15
+ $deployment = Get-AzureDeployment -ServiceName servicenamehere
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Get-AzureDeployment], ArgumentException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.HostedServices.GetAzureDeploymentCommand
其他各种语句返回时出现相同的错误“名称帐户”不存在。这是在登录并选择我的订阅后执行的,这很正常:
Add-AzureAccount
Select-AzureSubscription -SubscriptionName "subscriptionnamehere"
有关使用此accountName问题导致其失败的语句上发生的事情的任何想法?不确定这是否与资源管理器更改或Azure中最近几个月添加的任何其他新内容有关。
其他语句失败并出现相同的错误。实施例
Add-AzureVirtualIP -VirtualIPName newvipname -ServiceName servicenamehere
给出相同的错误
Add-AzureVirtualIP : Account with name '' does not exist.
Parameter name: accountName