Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dbradish-microsoft opened this issue Jun 27, 2024 · 3 comments
Assignees
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

Comments

@dbradish-microsoft
Copy link
Contributor

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

@dbradish-microsoft dbradish-microsoft added the bug This issue requires a change to an existing behavior in the product in order to be resolved. label Jun 27, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Auto-Assign Auto assign by bot label Jun 27, 2024
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 27, 2024

Thank you for opening this issue, we will look into it.

@microsoft-github-policy-service microsoft-github-policy-service bot added Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jun 27, 2024
@yonzhan yonzhan added this to the Backlog milestone Jun 27, 2024
@yonzhan yonzhan removed the question The issue doesn't require a change to the product in order to be resolved. Most issues start as that label Jun 27, 2024
@calvinhzy
Copy link
Member

Service error code is incorrect. For CLI side, will look into checking if the Storage resource provider is not registered in this case.

@calvinhzy calvinhzy added the Service Attention This issue is responsible by Azure service team. label Jun 28, 2024
Copy link
Contributor

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @xgithubtriage.

@yonzhan yonzhan removed the Azure CLI Team The command of the issue is owned by Azure CLI team label Jun 28, 2024
@dbradish-microsoft dbradish-microsoft changed the title az storage account create | incorrect / misleading error message when Customer feedback | az storage account create | incorrect / misleading error message when Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

4 participants