Skip to content

Files

Latest commit

author
Cynthia Nottingham
Sep 21, 2018
6dc5785 · Sep 21, 2018

History

History
50 lines (36 loc) · 1.65 KB

virtual-machines-common-gallery-list-cli.md

File metadata and controls

50 lines (36 loc) · 1.65 KB
title description services author ms.service ms.topic ms.date ms.author ms.custom
include file
include file
virtual-machines
cynthn
virtual-machines
include
09/20/2018
cynthn
include file

Using RBAC to share images

You can share images across subscriptions using Role Based Access Control (RBAC). Any user that has read permissions to an image version, even across subscriptions, will be able to deploy a Virtual Machine using the image version.

For more information about how to share resources using RBAC, see Manage access using RBAC and Azure CLI.

List information

Get the location, status and other information about the available image galleries using az sig list.

az sig list -o table

List the image definitions in a gallery, including information about OS type and status, using az sig image-definition list.

az sig image-definition list -g myGalleryRG -r myGallery -o table

List the shared image versions in a gallery, using az sig image-version list.

az sig image-version list -g myGalleryRG -r myGallery -i myGalleryImage -o table

Get the ID of an image version using az sig image-version show.

az sig image-version show \
-g myGalleryRG \     
-r myGallery \     
-i myGalleryImage \     
--gallery-image-version-name 1.0.0 \     
--query "id"