Skip to main content

gallery_images

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

Overview

Namegallery_images
TypeResource
Idazure.compute.gallery_images

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
descriptiontextfield from the properties object
architecturetextfield from the properties object
disallowedtextfield from the properties object
end_of_life_datetextfield from the properties object
eulatextfield from the properties object
featurestextfield from the properties object
galleryImageNametextfield from the properties object
galleryNametextfield from the properties object
hyper_v_generationtextfield from the properties object
identifiertextfield from the properties object
locationtextResource location
os_statetextfield from the properties object
os_typetextfield from the properties object
privacy_statement_uritextfield from the properties object
provisioning_statetextfield from the properties object
purchase_plantextfield from the properties object
recommendedtextfield from the properties object
release_note_uritextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTgalleryImageName, galleryName, resourceGroupName, subscriptionIdRetrieves information about a gallery image definition.
list_by_gallerySELECTgalleryName, resourceGroupName, subscriptionIdList gallery image definitions in a gallery.
create_or_updateINSERTgalleryImageName, galleryName, resourceGroupName, subscriptionIdCreate or update a gallery image definition.
deleteDELETEgalleryImageName, galleryName, resourceGroupName, subscriptionIdDelete a gallery image.
updateUPDATEgalleryImageName, galleryName, resourceGroupName, subscriptionIdUpdate a gallery image definition.

SELECT examples

List gallery image definitions in a gallery.

SELECT
id,
name,
description,
architecture,
disallowed,
end_of_life_date,
eula,
features,
galleryImageName,
galleryName,
hyper_v_generation,
identifier,
location,
os_state,
os_type,
privacy_statement_uri,
provisioning_state,
purchase_plan,
recommended,
release_note_uri,
resourceGroupName,
subscriptionId,
tags,
type
FROM azure.compute.vw_gallery_images
WHERE galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new gallery_images resource.

/*+ create */
INSERT INTO azure.compute.gallery_images (
galleryImageName,
galleryName,
resourceGroupName,
subscriptionId,
properties,
location,
tags
)
SELECT
'{{ galleryImageName }}',
'{{ galleryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;

UPDATE example

Updates a gallery_images resource.

/*+ update */
UPDATE azure.compute.gallery_images
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
galleryImageName = '{{ galleryImageName }}'
AND galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified gallery_images resource.

/*+ delete */
DELETE FROM azure.compute.gallery_images
WHERE galleryImageName = '{{ galleryImageName }}'
AND galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';