Share via


BatchPoolUpdateOptions Class

Definition

Parameters for updating an Azure Batch Pool.

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

Constructors

Name Description
BatchPoolUpdateOptions()

Initializes a new instance of BatchPoolUpdateOptions.

Properties

Name Description
ApplicationPackageReferences

A list of Packages to be installed on each Compute Node in the Pool. Changes to Package references affect all new Nodes joining the Pool, but do not affect Compute Nodes that are already in the Pool until they are rebooted or reimaged. If this element is present, it replaces any existing Package references. If you specify an empty collection, then all Package references are removed from the Pool. If omitted, any existing Package references are left unchanged.

DisplayName

The display name for the Pool. The display name need not be unique and can contain any Unicode characters up to a maximum length of 1024. This field can be updated only when the pool is empty.

EnableInterNodeCommunication

Whether the Pool permits direct communication between Compute Nodes. Enabling inter-node communication limits the maximum size of the Pool due to deployment restrictions on the Compute Nodes of the Pool. This may result in the Pool not reaching its desired size. The default value is false.<br /><br />This field can be updated only when the pool is empty.

Metadata

A list of name-value pairs associated with the Pool as metadata. If this element is present, it replaces any existing metadata configured on the Pool. If you specify an empty collection, any metadata is removed from the Pool. If omitted, any existing metadata is left unchanged.

MountConfiguration

Mount storage using specified file system for the entire lifetime of the pool. Mount the storage using Azure fileshare, NFS, CIFS or Blobfuse based file system.<br /><br />This field can be updated only when the pool is empty.

NetworkConfiguration

The network configuration for the Pool. This field can be updated only when the pool is empty.

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 left unchanged.

TaskSchedulingPolicy

How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread.<br /><br />This field can be updated only when the pool is empty.

TaskSlotsPerNode

The number of task slots that can be used to run concurrent tasks on a single compute node in the pool. The default value is 1. The maximum value is the smaller of 4 times the number of cores of the vmSize of the pool or 256.<br /><br />This field can be updated only when the pool is empty.

UpgradePolicy

The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or rolling.<br /><br />This field can be updated only when the pool is empty.

UserAccounts

The list of user Accounts to be created on each Compute Node in the Pool. This field can be updated only when the pool is empty.

VirtualMachineConfiguration

The virtual machine configuration for the Pool. This property must be specified.<br /><br />This field can be updated only when the pool is empty.

VmSize

The size of virtual machines in the Pool. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://learn.microsoft.com/azure/batch/batch-pool-vm-sizes).<br /><br />This field can be updated only when the pool is empty.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

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

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

IJsonModel<BatchPoolUpdateOptions>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BatchPoolUpdateOptions>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BatchPoolUpdateOptions>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BatchPoolUpdateOptions>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to