How to fix Azure Cloud Shell error “MissingSubscriptionRegistration - The subscription is not registered to use namespace 'Microsoft.Storage'”

廉价感情. 提交于 2019-12-11 08:29:31

问题


I've just tried to use the fancy new Azure Cloud Shell announced at Build 2017 but I'm getting the following error (as a json message):

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

I've googled this and found answers that suggest I need to register a resource provider with:

Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Storage

or

azure provider register Microsoft.Storage

...but I'm too lazy to setup a command line session to Azure.

How do I do this with the Azure portal?


回答1:


I found the answer by poking around: The resource providers are hidden within Subscriptions -> {my subscription} -> Resource providers -> Microsoft.Storage -> Register.

The Cloud Shell should now work.




回答2:


You can also do this from the command line:

az provider list
az provider register --namespace Microsoft.Storage



回答3:


Relevent documentation for future reference is here --> https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-common-deployment-errors#noregisteredproviderfound

This details how to resolve this through Azure portal, PowerShell, and Azure CLI.



来源:https://stackoverflow.com/questions/43907652/how-to-fix-azure-cloud-shell-error-missingsubscriptionregistration-the-subscr

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!