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

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id
namestringResource name
locationstringResource location
propertiesobjectDescribes the properties of a gallery image version.
tagsobjectResource tags
typestringResource type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName$expandRetrieves information about a gallery Application Version.
list_by_gallery_applicationselectsubscriptionId, resourceGroupName, galleryName, galleryApplicationNameList gallery Application Versions in a gallery Application Definition.
create_or_updateinsertsubscriptionId, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionNameCreate or update a gallery Application Version.
updateupdatesubscriptionId, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionNameUpdate a gallery Application Version.
deletedeletesubscriptionId, resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionNameDelete a gallery Application Version.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
galleryApplicationNamestringThe name of the gallery Application Definition in which the Application Version resides.
galleryApplicationVersionNamestringThe name of the gallery Application Version to be deleted.
galleryNamestringThe name of the Shared Application Gallery in which the Application Definition resides.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
$expandstringThe expand expression to apply on the operation.

SELECT examples

Retrieves information about a gallery Application Version.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.compute.gallery_application_versions
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND galleryName = '{{ galleryName }}' -- required
AND galleryApplicationName = '{{ galleryApplicationName }}' -- required
AND galleryApplicationVersionName = '{{ galleryApplicationVersionName }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

Create or update a gallery Application Version.

INSERT INTO azure.compute.gallery_application_versions (
data__properties,
data__location,
data__tags,
subscriptionId,
resourceGroupName,
galleryName,
galleryApplicationName,
galleryApplicationVersionName
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ galleryName }}',
'{{ galleryApplicationName }}',
'{{ galleryApplicationVersionName }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

UPDATE examples

Update a gallery Application Version.

UPDATE azure.compute.gallery_application_versions
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND galleryName = '{{ galleryName }}' --required
AND galleryApplicationName = '{{ galleryApplicationName }}' --required
AND galleryApplicationVersionName = '{{ galleryApplicationVersionName }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

DELETE examples

Delete a gallery Application Version.

DELETE FROM azure.compute.gallery_application_versions
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND galleryName = '{{ galleryName }}' --required
AND galleryApplicationName = '{{ galleryApplicationName }}' --required
AND galleryApplicationVersionName = '{{ galleryApplicationVersionName }}' --required
;