Skip to main content

applications

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

Overview

Nameapplications
TypeResource
Idazure.batch.applications

Fields

The following fields are returned by SELECT queries:

The operation was successful. The response contains the application entity.

NameDatatypeDescription
idstringThe ID of the resource.
namestringThe name of the resource.
etagstringThe ETag of the resource, used for concurrency statements.
propertiesobjectThe properties associated with the Application.
tagsobjectThe tags of the resource.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, accountName, applicationName, subscriptionIdGets information about the specified application.
listselectresourceGroupName, accountName, subscriptionIdmaxresultsLists all of the applications in the specified account.
createinsertresourceGroupName, accountName, applicationName, subscriptionIdAdds an application to the specified Batch account.
updateupdateresourceGroupName, accountName, applicationName, subscriptionIdUpdates settings for the specified application.
deletedeleteresourceGroupName, accountName, applicationName, subscriptionIdDeletes an 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
accountNamestringThe name of the Batch account.
applicationNamestringThe name of the application. This must be unique within the account.
resourceGroupNamestringThe name of the resource group that contains the Batch account.
subscriptionIdstringThe Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)
maxresultsinteger (int32)The maximum number of items to return in the response.

SELECT examples

Gets information about the specified application.

SELECT
id,
name,
etag,
properties,
tags,
type
FROM azure.batch.applications
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
AND applicationName = '{{ applicationName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Adds an application to the specified Batch account.

INSERT INTO azure.batch.applications (
data__properties,
data__tags,
resourceGroupName,
accountName,
applicationName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ resourceGroupName }}',
'{{ accountName }}',
'{{ applicationName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
properties,
tags,
type
;

UPDATE examples

Updates settings for the specified application.

UPDATE azure.batch.applications
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND applicationName = '{{ applicationName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
id,
name,
etag,
properties,
tags,
type;

DELETE examples

Deletes an application.

DELETE FROM azure.batch.applications
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
AND applicationName = '{{ applicationName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;