Share via


BatchPoolReplaceOptions Class

Definition

Parameters for replacing properties on an Azure Batch Pool.

public class BatchPoolReplaceOptions : System.ClientModel.Primitives.IJsonModel<Azure.Compute.Batch.BatchPoolReplaceOptions>, System.ClientModel.Primitives.IPersistableModel<Azure.Compute.Batch.BatchPoolReplaceOptions>
type BatchPoolReplaceOptions = class
    interface IJsonModel<BatchPoolReplaceOptions>
    interface IPersistableModel<BatchPoolReplaceOptions>
Public Class BatchPoolReplaceOptions
Implements IJsonModel(Of BatchPoolReplaceOptions), IPersistableModel(Of BatchPoolReplaceOptions)
Inheritance
BatchPoolReplaceOptions
Implements

Constructors

Name Description
BatchPoolReplaceOptions(IEnumerable<BatchApplicationPackageReference>, IEnumerable<BatchMetadataItem>)

Initializes a new instance of BatchPoolReplaceOptions.

Properties

Name Description
ApplicationPackageReferences

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

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.

StartTask

A Task to run on each Compute Node as it joins the Pool. The Task runs when the Compute Node is added to the Pool or when the Compute Node is restarted. If this element is present, it overwrites any existing StartTask. If omitted, any existing StartTask is removed from the Pool.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<BatchPoolReplaceOptions>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<BatchPoolReplaceOptions>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BatchPoolReplaceOptions>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BatchPoolReplaceOptions>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<BatchPoolReplaceOptions>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to