Skip to main content

gallery_applications

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

Overview

Namegallery_applications
TypeResource
Idazure.compute.gallery_applications

Fields

The following fields are returned by SELECT queries:

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

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, galleryName, galleryApplicationNameRetrieves information about a gallery Application Definition.
list_by_galleryselectsubscriptionId, resourceGroupName, galleryNameList gallery Application Definitions in a gallery.
create_or_updateinsertsubscriptionId, resourceGroupName, galleryName, galleryApplicationNameCreate or update a gallery Application Definition.
updateupdatesubscriptionId, resourceGroupName, galleryName, galleryApplicationNameUpdate a gallery Application Definition.
deletedeletesubscriptionId, resourceGroupName, galleryName, galleryApplicationNameDelete a gallery Application.

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 to be deleted.
galleryNamestringThe name of the Shared Application Gallery in which the Application Definition is to be deleted.
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.

SELECT examples

Retrieves information about a gallery Application Definition.

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

INSERT examples

Create or update a gallery Application Definition.

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

UPDATE examples

Update a gallery Application Definition.

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

DELETE examples

Delete a gallery Application.

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