Skip to main content

galleries

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

Overview

Namegalleries
TypeResource
Idazure.dev_center.galleries

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
devCenterNametextfield from the properties object
galleryNametextfield from the properties object
gallery_resource_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTdevCenterName, galleryName, resourceGroupName, subscriptionIdGets a gallery
list_by_dev_centerSELECTdevCenterName, resourceGroupName, subscriptionIdLists galleries for a devcenter.
create_or_updateINSERTdevCenterName, galleryName, resourceGroupName, subscriptionIdCreates or updates a gallery.
deleteDELETEdevCenterName, galleryName, resourceGroupName, subscriptionIdDeletes a gallery resource.

SELECT examples

Lists galleries for a devcenter.

SELECT
id,
name,
devCenterName,
galleryName,
gallery_resource_id,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.dev_center.vw_galleries
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified galleries resource.

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