Skip to main content

shared_gallery_images

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

Overview

Nameshared_gallery_images
TypeResource
Idazure.compute.shared_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 shared gallery resource.
disallowedobjectDescribes the disallowed disk types.
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.
eulastringEnd-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 shared 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.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, gallery_unique_name, gallery_image_name, subscription_idGet a shared gallery image by subscription id or tenant id.
listselectlocation, gallery_unique_name, subscription_idsharedToList shared gallery images 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 by subscription id or tenant id.

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