Azure / Azure/azure-cli

support `az sig exists`

Open
#28,748 1 comment 1 reaction 4 assignees Claimed by @calvinhzy View on GitHub
act-codegen-extensibility-squad act-observability-squad Auto-Assign Azure CLI Team Compute customer-reported feature-request Storage
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
`az sig **exists**`
`az sig image-definition **exists**`

**Is your feature request related to a problem? Please describe.**

I would like to check whether an image gallery exist. I could use the existing `az sig show` to check.

If a gallery exist, it (`az sig show`) send output to `stdout`. If a gallery does not exist, it send error msg to `stderr`. A simple method like `az sig exists` that send a simple json result to `stdout` in both case would make scripting easier.

**Describe the solution you'd like**

Create an **exists** method for `az sig` commands. Return a json (e.g., `{"exists": "false"}`) to `stdout`.

Similar to existing az cli command e.g., `az storage container exists`

**Describe alternatives you've considered**

**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.