-
Notifications
You must be signed in to change notification settings - Fork 3.4k
support az sig exists #28748
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotStorageaz storageaz storageact-codegen-extensibility-squadact-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotStorageaz storageaz storageact-codegen-extensibility-squadact-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-request
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 showto check.If a gallery exist, it (
az sig show) send output tostdout. If a gallery does not exist, it send error msg tostderr. A simple method likeaz sig existsthat send a simple json result tostdoutin both case would make scripting easier.Describe the solution you'd like
Create an exists method for
az sigcommands. Return a json (e.g.,{"exists": "false"}) tostdout.Similar to existing az cli command e.g.,
az storage container existsDescribe alternatives you've considered
Additional context