Azure / Azure/azure-cli

Az config set allows for misleading error descriptions.

Open
#21,132 2 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-codegen-extensibility-squad Configure feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 10h
Merged PRs (30d)
64

Description

**Resource Provider**
Az config

**Description of Feature or Work Requested**
Is there any way we can tell through the code when an argument (e.g. resource group) was enforced by the default configuration? We want to have a more descriptive error. Right now it says that the resource was not found. But in commands like show, we have a way to find the resource group when it isn't provided and the error saying the resource isn't found is misleading. We would like a more descriptive error that shows when the user has a default rg config we can warn them in case of a resourceGroupNotFound error.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.