Azure / Azure/azure-cli

Inconsistent return value for "exists" commands

Open
#21,822 5 comments 0 reactions 1 assignee Assigned to @evelyn-ys View on GitHub
act-codegen-extensibility-squad Auto-Assign customer-reported feature-request Storage
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### **This is autogenerated. Please review and update as needed.**

## Describe the bug

**Command Name**
`az storage container exists`

**Errors:**
The command return json with
```
{
"exists": true
}
```
When I use "az group exists" I only get

```
true
```

as result.

Also this command should return just true/false and not json. (Or the the "az group exists" command should return also json)

## To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

- _Put any pre-requisite steps here..._
- `az storage container exists -n {} --account-name {}`

## Expected Behavior

true/false instead of json object

## Environment Summary
```
macOS-12.2.1-x86_64-i386-64bit, Darwin 21.3.0
Python 3.10.2
Installer: HOMEBREW

azure-cli 2.34.1

Extensions:
monitor-control-service 0.2.0
log-analytics-solution 0.1.1
ssh 1.0.0
scheduled-query 0.5.0

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0
```
## 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.