Azure / Azure/azure-cli

az configure doesn't check the validity of the arguments/values before configuring

Open
#14,849 6 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 2h
Merged PRs (30d)
60

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.62

**Describe the bug**
CLI tells me rg isn't avail after I'd already explicitly configured it

![image](https://user-images.githubusercontent.com/30876406/90693926-8f5e9400-e22c-11ea-87f8-e3194d2b69ed.png)

**To Reproduce**
1) used az configure to set global rg
![image](https://user-images.githubusercontent.com/30876406/90694005-b4eb9d80-e22c-11ea-9724-39d037f11942.png)

2) created appservice plan but ended up failing because rg isn't actually avail
![image](https://user-images.githubusercontent.com/30876406/90694013-bc12ab80-e22c-11ea-97b5-d744052f9d94.png)

**Expected behavior**
If the rg to be set at az configure isn't actually a valid rg, the tool should not plainly accept the value. It should first check the validity of the resource and return an error if it's not a valid rg. Else it would give a false impression that the configure has been successful and that the defaulted values are readily avail for use -- which is not in this case

**Environment summary**
CLI 2.10.1 on windows

**Additional context**

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.