Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idazure.batch.applications

Fields

NameDatatypeDescription
idtextThe ID of the resource.
nametextThe name of the resource.
accountNametextfield from the properties object
allow_updatestextfield from the properties object
applicationNametextfield from the properties object
default_versiontextfield from the properties object
display_nametextfield from the properties object
etagtextThe ETag of the resource, used for concurrency statements.
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe tags of the resource.
typetextThe type of the resource.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, applicationName, resourceGroupName, subscriptionIdGets information about the specified application.
listSELECTaccountName, resourceGroupName, subscriptionIdLists all of the applications in the specified account.
createINSERTaccountName, applicationName, resourceGroupName, subscriptionIdAdds an application to the specified Batch account.
deleteDELETEaccountName, applicationName, resourceGroupName, subscriptionIdDeletes an application.
updateUPDATEaccountName, applicationName, resourceGroupName, subscriptionIdUpdates settings for the specified application.

SELECT examples

Lists all of the applications in the specified account.

SELECT
id,
name,
accountName,
allow_updates,
applicationName,
default_version,
display_name,
etag,
resourceGroupName,
subscriptionId,
tags,
type
FROM azure.batch.vw_applications
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.batch.applications (
accountName,
applicationName,
resourceGroupName,
subscriptionId,
properties,
tags
)
SELECT
'{{ accountName }}',
'{{ applicationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}'
;

UPDATE example

Updates a applications resource.

/*+ update */
UPDATE azure.batch.applications
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
accountName = '{{ accountName }}'
AND applicationName = '{{ applicationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified applications resource.

/*+ delete */
DELETE FROM azure.batch.applications
WHERE accountName = '{{ accountName }}'
AND applicationName = '{{ applicationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';