application_packages
Creates, updates, deletes, gets or lists a application_packages
resource.
Overview
Name | application_packages |
Type | Resource |
Id | azure.batch.application_packages |
Fields
- vw_application_packages
- application_packages
Name | Datatype | Description |
---|---|---|
id | text | The ID of the resource. |
name | text | The name of the resource. |
accountName | text | field from the properties object |
applicationName | text | field from the properties object |
etag | text | The ETag of the resource, used for concurrency statements. |
format | text | field from the properties object |
last_activation_time | text | field from the properties object |
resourceGroupName | text | field from the properties object |
state | text | field from the properties object |
storage_url | text | field from the properties object |
storage_url_expiry | 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. |
versionName | text | field from the properties object |
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 | Properties of an application package |
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, versionName | Gets information about the specified application package. |
list | SELECT | accountName, applicationName, resourceGroupName, subscriptionId | Lists all of the application packages in the specified application. |
create | INSERT | accountName, applicationName, resourceGroupName, subscriptionId, versionName | Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the ApplicationPackage needs to be activated using ApplicationPackageActive before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. |
delete | DELETE | accountName, applicationName, resourceGroupName, subscriptionId, versionName | Deletes an application package record and its associated binary file. |
activate | EXEC | accountName, applicationName, resourceGroupName, subscriptionId, versionName, data__format | Activates the specified application package. This should be done after the ApplicationPackage was created and uploaded. This needs to be done before an ApplicationPackage can be used on Pools or Tasks. |
SELECT
examples
Lists all of the application packages in the specified application.
- vw_application_packages
- application_packages
SELECT
id,
name,
accountName,
applicationName,
etag,
format,
last_activation_time,
resourceGroupName,
state,
storage_url,
storage_url_expiry,
subscriptionId,
tags,
type,
versionName
FROM azure.batch.vw_application_packages
WHERE accountName = '{{ accountName }}'
AND applicationName = '{{ applicationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
etag,
properties,
tags,
type
FROM azure.batch.application_packages
WHERE accountName = '{{ accountName }}'
AND applicationName = '{{ applicationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new application_packages
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.batch.application_packages (
accountName,
applicationName,
resourceGroupName,
subscriptionId,
versionName,
properties,
tags
)
SELECT
'{{ accountName }}',
'{{ applicationName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ versionName }}',
'{{ properties }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: state
value: string
- name: format
value: string
- name: storageUrl
value: string
- name: storageUrlExpiry
value: string
- name: lastActivationTime
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: etag
value: string
- name: tags
value: object
DELETE
example
Deletes the specified application_packages
resource.
/*+ delete */
DELETE FROM azure.batch.application_packages
WHERE accountName = '{{ accountName }}'
AND applicationName = '{{ applicationName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND versionName = '{{ versionName }}';