Skip to content

Customer feedback | az storage account create | incorrect / misleading error message when  #29267

Description

@dbradish-microsoft

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

image

Issue script & Debug output

n/a

Expected behavior

A clear and informative error message.

Environment Summary

Version 2.61.0

Additional context

No response

Metadata

Metadata

Labels

Auto-AssignAuto assign by botService AttentionThis issue is responsible by Azure service team.Storageaz storageact-codegen-extensibility-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions