问题
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