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, the Microsoft.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 run az 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
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.Storageprovider must be registered. To register a resource provider, see Azure resource providers and types.This error should say "Error: The resource provider for
Microsoft.Storagemust 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