Skip to main content

galleries

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

Overview

Namegalleries
TypeResource
Idazure.compute.galleries

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
descriptiontextfield from the properties object
galleryNametextfield from the properties object
identifiertextfield from the properties object
locationtextResource location
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
sharing_profiletextfield from the properties object
sharing_statustextfield from the properties object
soft_delete_policytextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTgalleryName, resourceGroupName, subscriptionIdRetrieves information about a Shared Image Gallery.
listSELECTsubscriptionIdList galleries under a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList galleries under a resource group.
create_or_updateINSERTgalleryName, resourceGroupName, subscriptionIdCreate or update a Shared Image Gallery.
deleteDELETEgalleryName, resourceGroupName, subscriptionIdDelete a Shared Image Gallery.
updateUPDATEgalleryName, resourceGroupName, subscriptionIdUpdate a Shared Image Gallery.

SELECT examples

List galleries under a subscription.

SELECT
id,
name,
description,
galleryName,
identifier,
location,
provisioning_state,
resourceGroupName,
sharing_profile,
sharing_status,
soft_delete_policy,
subscriptionId,
tags,
type
FROM azure.compute.vw_galleries
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a galleries resource.

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

DELETE example

Deletes the specified galleries resource.

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