Skip to main content

gallery_image_versions

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

Overview

Namegallery_image_versions
TypeResource
Idazure.compute.gallery_image_versions

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
galleryImageNametextfield from the properties object
galleryImageVersionNametextfield from the properties object
galleryNametextfield from the properties object
locationtextResource location
provisioning_statetextfield from the properties object
publishing_profiletextfield from the properties object
replication_statustextfield from the properties object
resourceGroupNametextfield from the properties object
safety_profiletextfield from the properties object
security_profiletextfield from the properties object
storage_profiletextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags
typetextResource type

Methods

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

SELECT examples

List gallery image versions in a gallery image definition.

SELECT
id,
name,
galleryImageName,
galleryImageVersionName,
galleryName,
location,
provisioning_state,
publishing_profile,
replication_status,
resourceGroupName,
safety_profile,
security_profile,
storage_profile,
subscriptionId,
tags,
type
FROM azure.compute.vw_gallery_image_versions
WHERE galleryImageName = '{{ galleryImageName }}'
AND galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a gallery_image_versions resource.

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

DELETE example

Deletes the specified gallery_image_versions resource.

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