gpt4 book ai didi

azure - 在azure自动化中选择订阅

转载 作者:行者123 更新时间:2023-12-03 05:08:57 27 4
gpt4 key购买 nike

我正在尝试在 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。

有人设法正确配置这个吗?

最佳答案

您需要使用 Add-AzureAccount 设置 Azure 身份验证。请参阅https://msdn.microsoft.com/en-us/library/azure/dn865019.aspx了解更多详情。

关于azure - 在azure自动化中选择订阅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28303420/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com