Skip to content

Inconsistent return value for "exists" commands #21822

@tbirk-bhs

Description

@tbirk-bhs

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions