我正在尝试在 Windows Azure 中启动并运行自动化脚本。我收到一条错误消息,告诉我必须使用 Select-AzureSubscription。这个失败并出现以下错误:
Error: Select-AzureSubscription : The subscription named 'xxx' cannot be found. Use Set-AzureSubscription to
initialize the subscription data.
Parameter name: name
At my-script:15 char:15
+
+ CategoryInfo : CloseError: (:) [Select-AzureSubscription], ArgumentException
+ FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.SelectAzureSubscriptionCommand
所以我使用了 Set-AzureSubscription 但这个也失败了。我尝试传递订阅名称和订阅 ID。
有人设法正确配置了吗?