【发布时间】:2016-11-18 10:05:16
【问题描述】:
尝试使用 Windows PowerShell 设置 azure 订阅时出现错误。
Set-AzureSubscription -SubscriptionName $azureSubscriptionName -CurrentStorageAccount $service_name
Set-AzureSubscription : ForbiddenError: 服务器未能对请求进行身份验证。验证证书是否 有效并与此订阅相关联。 在行:1 字符:1 + 设置 AzureSubscription -SubscriptionName $azureSubscriptionName -CurrentStorage ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : CloseError: (:) [Set-AzureSubscription], CloudException + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Profile.SetAzureSubscriptionCommand
我在 azure 门户中确认我作为参数提供的服务在 $azureSubscriptionName 中传递的订阅中。
另一个事实是,当我列出 Azure 订阅时,CurrentStorageAccountName 为空。
这个命令有什么问题?如何设置当前存储帐户?
【问题讨论】:
标签: powershell azure azure-storage