applications
Creates, updates, deletes, gets or lists a applications
resource.
Overview
Name | applications |
Type | Resource |
Id | azure.batch.applications |
Fields
- vw_applications
- applications
Name | Datatype | Description |
---|---|---|
id | text | The ID of the resource. |
name | text | The name of the resource. |
accountName | text | field from the properties object |
allow_updates | text | field from the properties object |
applicationName | text | field from the properties object |
default_version | text | field from the properties object |
display_name | text | field from the properties object |
etag | text | The ETag of the resource, used for concurrency statements. |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | The tags of the resource. |
type | text | The type of the resource. |
Name | Datatype | Description |
---|---|---|
id | string | The ID of the resource. |
name | string | The name of the resource. |
etag | string | The ETag of the resource, used for concurrency statements. |
properties | object | The properties associated with the Application. |
tags | object | The tags of the resource. |
type | string | The type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountName, applicationName, resourceGroupName, subscriptionId | Gets information about the specified application. |
list | SELECT | accountName, resourceGroupName, subscriptionId | Lists all of the applications in the specified account. |
create | INSERT | accountName, applicationName, resourceGroupName, subscriptionId | Adds an application to the specified Batch account. |
delete | DELETE | accountName, applicationName, resourceGroupName, subscriptionId | Deletes an application. |
update | UPDATE | accountName, applicationName, resourceGroupName, subscriptionId | Updates settings for the specified application. |
SELECT
examples
Lists all of the applications in the specified account.
- vw_applications
- applications
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 }}';
SELECT
id,
name,
etag,
properties,
tags,
type
FROM azure.batch.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.batch.applications (
accountName,
applicationName,
resourceGroupName,
subscriptionId,
properties,
tags
)
SELECT
'{{ accountName }}',
'{{ applicationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: displayName
value: string
- name: allowUpdates
value: boolean
- name: defaultVersion
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: etag
value: string
- name: tags
value: object
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 }}';