Skip to main content

gallery_application_versions

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

Overview

Namegallery_application_versions
TypeResource
Idazure.compute.gallery_application_versions

Fields

NameDatatypeDescription
idtextResource Id
nametextResource name
galleryApplicationNametextfield from the properties object
galleryApplicationVersionNametextfield 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
subscriptionIdtextfield from the properties object
tagstextResource tags
typetextResource type

Methods

NameAccessible byRequired ParamsDescription
getSELECTgalleryApplicationName, galleryApplicationVersionName, galleryName, resourceGroupName, subscriptionIdRetrieves information about a gallery Application Version.
list_by_gallery_applicationSELECTgalleryApplicationName, galleryName, resourceGroupName, subscriptionIdList gallery Application Versions in a gallery Application Definition.
create_or_updateINSERTgalleryApplicationName, galleryApplicationVersionName, galleryName, resourceGroupName, subscriptionIdCreate or update a gallery Application Version.
deleteDELETEgalleryApplicationName, galleryApplicationVersionName, galleryName, resourceGroupName, subscriptionIdDelete a gallery Application Version.
updateUPDATEgalleryApplicationName, galleryApplicationVersionName, galleryName, resourceGroupName, subscriptionIdUpdate a gallery Application Version.

SELECT examples

List gallery Application Versions in a gallery Application Definition.

SELECT
id,
name,
galleryApplicationName,
galleryApplicationVersionName,
galleryName,
location,
provisioning_state,
publishing_profile,
replication_status,
resourceGroupName,
safety_profile,
subscriptionId,
tags,
type
FROM azure.compute.vw_gallery_application_versions
WHERE galleryApplicationName = '{{ galleryApplicationName }}'
AND galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a gallery_application_versions resource.

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

DELETE example

Deletes the specified gallery_application_versions resource.

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