Reputation: 11533
I'm trying to setup Azure CLI. The first step is to create a storage for account files. I'm using my Developer Program Benefit
subscription.
After I click "Create storage" I get an error:
Storage creation failed
Error:409
{"error":{"code":"MissingSubscriptionRegistration","message":"The subscription is not registered to use namespace 'Microsoft.Storage'. See https://aka.ms/rps-not-found for how to register subscriptions."}}
Can't create a storage account. Please try again.
How to resolve this issue?
Upvotes: 0
Views: 4330
Reputation: 136146
The reason you're getting this error is because Microsoft.Storage
resource provider which manages Storage Account related resources and activities is not registered with your Azure Subscription.
To fix this, please run the following command:
azure provider register --namespace "Microsoft.Storage" --subscription "<your subscription name or id>"
To get the subscription name/id, please run the following command:
azure account list
For more details on why you're getting this error, please see this: The subscription is not registered to use namespace 'Microsoft.DataFactory error
If you prefer GUI, then you can do it on the Azure portal too:
More services
and then select Subscriptions
Developer Program Benefit
Settings
area click Resource providers
Microsoft.Storage
and click Register
Upvotes: 2