Customer feedback | az storage account create | incorrect / misleading error message when #29267
Labels
Auto-Assign
Auto assign by bot
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Service Attention
This issue is responsible by Azure service team.
Storage
az storage
Milestone
Describe the bug
Assuming the customer has not incorrectly typed a subscription name or ID, they receive a "subscription not found" error when a resource provider is not registered in the active subscription. For example, if you want to execute
az storage account create
, theMicrosoft.Storage
provider must be registered. To register a resource provider, see Azure resource providers and types.This error should say "Error: The resource provider for
Microsoft.Storage
must be registered to runaz storage account create
. To learn how to register a resource provider, see [Azure resource providers and types](https://review.learn.microsoft.com/en-us/azure/azure-resource-manager/management/resource-providers-and-types). Then, rerun the command." ... or something similar.Telling the customer "subscription not found" might be correct "downstream", but it is not the primary problem and changing or resetting your subscription doesn't fix the problem.
Related command
az storage account create
Errors
Issue script & Debug output
n/a
Expected behavior
A clear and informative error message.
Environment Summary
Version 2.61.0
Additional context
No response
The text was updated successfully, but these errors were encountered: