Bagikan melalui


MultiInstanceSettings.CommonResourceFiles Property

Definition

Gets or sets a list of files that the Batch service will download before running the coordination command line.

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

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Remarks

The difference between common resource files and Task resource files is that common resource files are downloaded for all subtasks including the primary, whereas Task resource files are downloaded only for the primary. Also note that these resource files are not downloaded to the Task working directory, but instead are downloaded to the Task root directory (one directory above the working directory). There is a maximum size for the list of resource files. When the max size is exceeded, the request will fail and the response error code will be RequestEntityTooLarge. If this occurs, the collection of ResourceFiles must be reduced in size. This can be achieved using .zip files, Application Packages, or Docker Containers.

Applies to