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