Freigeben über


BatchPoolReplaceContent Constructor

Definition

Initializes a new instance of BatchPoolReplaceContent.

public BatchPoolReplaceContent (System.Collections.Generic.IEnumerable<Azure.Compute.Batch.BatchApplicationPackageReference> applicationPackageReferences, System.Collections.Generic.IEnumerable<Azure.Compute.Batch.MetadataItem> metadata);
new Azure.Compute.Batch.BatchPoolReplaceContent : seq<Azure.Compute.Batch.BatchApplicationPackageReference> * seq<Azure.Compute.Batch.MetadataItem> -> Azure.Compute.Batch.BatchPoolReplaceContent
Public Sub New (applicationPackageReferences As IEnumerable(Of BatchApplicationPackageReference), metadata As IEnumerable(Of MetadataItem))

Parameters

applicationPackageReferences
IEnumerable<BatchApplicationPackageReference>

The list of Application Packages to be installed on each Compute Node in the Pool. The list replaces any existing Application Package references on the Pool. Changes to Application Package references affect all new Compute Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. There is a maximum of 10 Application Package references on any given Pool. If omitted, or if you specify an empty collection, any existing Application Packages references are removed from the Pool. A maximum of 10 references may be specified on a given Pool.

metadata
IEnumerable<MetadataItem>

A list of name-value pairs associated with the Pool as metadata. This list replaces any existing metadata configured on the Pool. If omitted, or if you specify an empty collection, any existing metadata is removed from the Pool.

Exceptions

applicationPackageReferences or metadata is null.

Applies to