Skip to main content

community_gallery_image_versions

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

Overview

Namecommunity_gallery_image_versions
TypeResource
Idazure.compute.community_gallery_image_versions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringResource name.
artifactTagsobjectThe artifact tags of a community gallery resource.
disclaimerstringThe disclaimer for a community 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 community 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.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, public_gallery_name, gallery_image_name, gallery_image_version_name, subscription_idGet a community gallery image version.
listselectlocation, public_gallery_name, gallery_image_name, subscription_idList community gallery image versions inside an image.

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

SELECT examples

Get a community gallery image version.

SELECT
name,
artifactTags,
disclaimer,
endOfLifeDate,
excludeFromLatest,
identifier,
location,
publishedDate,
storageProfile,
type
FROM azure.compute.community_gallery_image_versions
WHERE location = '{{ location }}' -- required
AND public_gallery_name = '{{ public_gallery_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
;