Skip to main content

community_gallery_images

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

Overview

Namecommunity_gallery_images
TypeResource
Idazure.compute.community_gallery_images

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringResource name.
architecturestringThe architecture of the image. Applicable to OS disks only. Known values are: "x64" and "Arm64". (x64, Arm64)
artifactTagsobjectThe artifact tags of a community gallery resource.
disallowedobjectDescribes the disallowed disk types.
disclaimerstringThe disclaimer for a community gallery resource.
endOfLifeDatestring (date-time)The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
eulastringThe end-user license agreement for the current community gallery image.
featuresarrayA list of gallery image features.
hyperVGenerationstringThe hypervisor generation of the Virtual Machine. Applicable to OS disks only. Known values are: "V1" and "V2". (V1, V2)
identifierobjectThe identifier information of community gallery.
locationstringResource location.
osStatestringThis property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'. Required. Known values are: "Generalized" and "Specialized". (Generalized, Specialized)
osTypestringThis property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: Windows, Linux.. Required. Known values are: "Windows" and "Linux". (Windows, Linux)
privacyStatementUristringPrivacy statement URI for the current community gallery image.
purchasePlanobjectDescribes the gallery image definition purchase plan. This is used by marketplace images.
recommendedobjectThe properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, public_gallery_name, gallery_image_name, subscription_idGet a community gallery image.
listselectlocation, public_gallery_name, subscription_idList community gallery images inside a gallery.

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.

SELECT
name,
architecture,
artifactTags,
disallowed,
disclaimer,
endOfLifeDate,
eula,
features,
hyperVGeneration,
identifier,
location,
osState,
osType,
privacyStatementUri,
purchasePlan,
recommended,
type
FROM azure.compute.community_gallery_images
WHERE location = '{{ location }}' -- required
AND public_gallery_name = '{{ public_gallery_name }}' -- required
AND gallery_image_name = '{{ gallery_image_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;