如何修复 Azure Cloud Shell 错误“MissingSubscriptionRegistration - 订阅未注册为使用命名空间“Microsoft.Storage””

Jac*_*eja 5 azure azure-cloud-shell

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

  {
    "error": {
        "code": "MissingSubscriptionRegistration",
        "message": "The subscription is not registered to use namespace 'Microsoft.Storage'"
    }
  }
Run Code Online (Sandbox Code Playgroud)

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

Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Storage
Run Code Online (Sandbox Code Playgroud)

或者

azure provider register Microsoft.Storage
Run Code Online (Sandbox Code Playgroud)

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

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

Jac*_*eja 4

我通过探索找到了答案:资源提供程序隐藏在订阅 -> {我的订阅} -> 资源提供程序 -> Microsoft.Storage -> 注册中。

Cloud Shell 现在应该可以运行了。 在此输入图像描述