Th error message you received indicates that the Microsoft. Storage resource provider is not registered for your subscription. It mentions that you don’t have permissions to register it.
Storage not being registered for your Azure subscription 1, you can follow these steps:
Check Permissions: Ensure that you have the necessary permissions to register resource providers. You need either subscription owner rights or someone with appropriate rights to register the provider for you. If needed, create a custom role and assign it to the user(s) who need to register providers1.
Register the Resource Provider: To manually register a resource provider, follow these steps:
Azure Portal:
Sign in to the Azure portal.
- Select Subscriptions from the left-side navigation pane (if not listed, click More services first).
Choose the subscription where you want to register the provider.
- Click Access control (IAM).
- Click Add, then select Register Microsoft providers and click OK.
Azure CLI: Run the following command in Azure CLI to check the registration status of resource providers:
az provider list --output table
This command will display whether each resource provider is Registered or NotRegistered. If a provider is not registered, you can register it using the appropriate command.
Azure PowerShell: Use the following PowerShell command to check the registration status:
Get-AzResourceProvider | Select-Object ProviderNamespace, RegistrationState
If a provider is not registered, you can register it using the appropriate cmdlet.
Verify API Versions and Supported Locations: Ensure that the API version specified in your template is supported for the resource type. Additionally, check if the location you’re deploying resources to is supported for the resource type.
Remember to replace placeholders like {location}, {api-version}, and {resource-type} with the actual values from your deployment error message.
If you encounter any issues, consider reaching out to your subscription administrator for assistance.