Share via


ComputeBatchModelFactory.BatchApplicationPackageReference Method

Definition

A reference to an Package to be deployed to Compute Nodes.

public static Azure.Compute.Batch.BatchApplicationPackageReference BatchApplicationPackageReference(string applicationId = default, string version = default);
static member BatchApplicationPackageReference : string * string -> Azure.Compute.Batch.BatchApplicationPackageReference
Public Shared Function BatchApplicationPackageReference (Optional applicationId As String = Nothing, Optional version As String = Nothing) As BatchApplicationPackageReference

Parameters

applicationId
String

The ID of the application to deploy. When creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}).

version
String

The version of the application to deploy. If omitted, the default version is deployed. If this is omitted on a Pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a Task, and no default version is specified for this application, the Task fails with a pre-processing error.

Returns

A new BatchApplicationPackageReference instance for mocking.

Applies to