Skip to main content

application_packages

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

Overview

Nameapplication_packages
TypeResource
Idazure.batch.application_packages

Fields

NameDatatypeDescription
idtextThe ID of the resource.
nametextThe name of the resource.
accountNametextfield from the properties object
applicationNametextfield from the properties object
etagtextThe ETag of the resource, used for concurrency statements.
formattextfield from the properties object
last_activation_timetextfield from the properties object
resourceGroupNametextfield from the properties object
statetextfield from the properties object
storage_urltextfield from the properties object
storage_url_expirytextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe tags of the resource.
typetextThe type of the resource.
versionNametextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, applicationName, resourceGroupName, subscriptionId, versionNameGets information about the specified application package.
listSELECTaccountName, applicationName, resourceGroupName, subscriptionIdLists all of the application packages in the specified application.
createINSERTaccountName, applicationName, resourceGroupName, subscriptionId, versionNameCreates 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.
deleteDELETEaccountName, applicationName, resourceGroupName, subscriptionId, versionNameDeletes an application package record and its associated binary file.
activateEXECaccountName, applicationName, resourceGroupName, subscriptionId, versionName, data__formatActivates 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.

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 }}';

INSERT example

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

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

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 }}';