Skip to main content

shared_gallery_image_versions

Creates, updates, deletes, gets or lists a shared_gallery_image_versions resource.

Overview

Nameshared_gallery_image_versions
TypeResource
Idazure.compute.shared_gallery_image_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringResource name.
artifactTagsobjectThe artifact tags of a shared gallery resource.
endOfLifeDatestring (date-time)The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable.
excludeFromLatestbooleanIf set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.
identifierobjectThe identifier information of shared gallery.
locationstringResource location.
publishedDatestring (date-time)The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable.
storageProfileobjectDescribes the storage profile of the image version.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, gallery_unique_name, gallery_image_name, gallery_image_version_name, subscription_idGet a shared gallery image version by subscription id or tenant id.
listselectlocation, gallery_unique_name, gallery_image_name, subscription_idsharedToList shared gallery image versions by subscription id or tenant id.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationstringThe name of the Azure region. Required.
subscription_idstring
sharedTostringThe query parameter to decide what shared galleries to fetch when doing listing operations. "tenant" Default value is None.

SELECT examples

Get a shared gallery image version by subscription id or tenant id.

SELECT
name,
artifactTags,
endOfLifeDate,
excludeFromLatest,
identifier,
location,
publishedDate,
storageProfile
FROM azure.compute.shared_gallery_image_versions
WHERE location = '{{ location }}' -- required
AND gallery_unique_name = '{{ gallery_unique_name }}' -- required
AND gallery_image_name = '{{ gallery_image_name }}' -- required
AND gallery_image_version_name = '{{ gallery_image_version_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;