Skip to main content

application

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

Overview

Nameapplication
TypeResource
Idazure.batch.application

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
allowUpdatesbooleanA value indicating whether packages within the application may be overwritten using the same version string.
defaultVersionstringThe package to use if a client requests the application but does not specify a version. This property can only be set to the name of an existing package.
displayNamestringThe display name for the application.
etagstringThe ETag of the resource, used for concurrency statements.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectThe tags of the resource.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, application_name, subscription_idGets information about the specified application.
listselectresource_group_name, account_name, subscription_idmaxresultsLists all of the applications in the specified account.
createinsertresource_group_name, account_name, application_name, subscription_idAdds an application to the specified Batch account.
updateupdateresource_group_name, account_name, application_name, subscription_idUpdates settings for the specified application.
deletedeleteresource_group_name, account_name, application_name, subscription_idDeletes 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
account_namestringA name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/ _. Required.
application_namestringThe name of the application. This must be unique within the account. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
maxresultsintegerThe maximum number of items to return in the response. Default value is None.

SELECT examples

Gets information about the specified application.

SELECT
id,
name,
allowUpdates,
defaultVersion,
displayName,
etag,
systemData,
tags,
type
FROM azure.batch.application
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND application_name = '{{ application_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Adds an application to the specified Batch account.

INSERT INTO azure.batch.application (
properties,
tags,
resource_group_name,
account_name,
application_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ application_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates settings for the specified application.

UPDATE azure.batch.application
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND application_name = '{{ application_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
tags,
type;

DELETE examples

Deletes an application.

DELETE FROM azure.batch.application
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND application_name = '{{ application_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;