4

我刚刚尝试使用在 Build 2017 中宣布的新的 Azure Cloud Shell,但我收到以下错误(作为 json 消息):

  {
    "error": {
        "code": "MissingSubscriptionRegistration",
        "message": "The subscription is not registered to use namespace 'Microsoft.Storage'"
    }
  }

我用谷歌搜索了这个并找到了建议我需要注册资源提供者的答案:

Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Storage

或者

azure provider register Microsoft.Storage

...但我懒得设置到 Azure 的命令行会话。

如何使用 Azure 门户执行此操作?

4

3 回答 3

2

我通过四处寻找答案:资源提供者隐藏在订阅 -> {我的订阅} -> 资源提供者 -> Microsoft.Storage -> 注册中。

Cloud Shell 现在应该可以工作了。 在此处输入图像描述

于 2017-05-11T06:06:51.340 回答
1

您也可以从命令行执行此操作:

az provider list
az provider register --namespace Microsoft.Storage
于 2017-05-12T05:40:58.227 回答
0

供将来参考的相关文档在这里 --> https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-common-deployment-errors#noregisteredproviderfound

这详细说明了如何通过 Azure 门户、PowerShell 和 Azure CLI 解决此问题。

于 2017-05-17T21:42:49.330 回答