共用方式為


CloudTask.ApplicationPackageReferences Property

Definition

Gets or sets a list of Packages that the Batch service will deploy to the Compute Node before running the command line.

[Newtonsoft.Json.JsonProperty(PropertyName="applicationPackageReferences")]
public System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ApplicationPackageReference> ApplicationPackageReferences { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="applicationPackageReferences")>]
member this.ApplicationPackageReferences : System.Collections.Generic.IList<Microsoft.Azure.Batch.Protocol.Models.ApplicationPackageReference> with get, set
Public Property ApplicationPackageReferences As IList(Of ApplicationPackageReference)

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Remarks

Application packages are downloaded and deployed to a shared directory, not the Task working directory. Therefore, if a referenced package is already on the Node, and is up to date, then it is not re-downloaded; the existing copy on the Compute Node is used. If a referenced Package cannot be installed, for example because the package has been deleted or because download failed, the Task fails.

Applies to