BatchPoolUpdateOptions Class
Parameters for updating an Azure Batch Pool.
Constructor
BatchPoolUpdateOptions(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
display_name
|
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. |
|
vm_size
|
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). |
|
enable_inter_node_communication
|
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. |
|
start_task
|
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. |
|
application_package_references
|
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. |
|
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. |
|
virtual_machine_configuration
|
The virtual machine configuration for the Pool. This
property must be specified. |
|
vm_sku_profile
|
Specifies the profile of VM sizes and the allocation strategy used to
allocate Compute Nodes for an Instance Mix Pool. When specified, vmSize must be 'Mix'. |
|
task_slots_per_node
|
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. |
|
task_scheduling_policy
|
How Tasks are distributed across Compute Nodes in a Pool. If not
specified, the default is spread. |
|
network_configuration
|
The network configuration for the Pool. This field can be updated only when the pool is empty. |
|
user_accounts
|
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. |
|
mount_configuration
|
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. |
|
upgrade_policy
|
The upgrade policy for the Pool. Describes an upgrade policy - automatic,
manual, or rolling. |
Methods
| as_dict |
Return a dict that can be turned into json using json.dump. |
| clear |
Remove all items from the dictionary. |
| copy | |
| get |
Get the value for key if key is in the dictionary, else default. :param str key: The key to look up. :param any default: The value to return if key is not in the dictionary. Defaults to None :returns: The value for key if key is in the dictionary, else default. :rtype: any |
| items | |
| keys | |
| pop |
Removes specified key and return the corresponding value. :param str key: The key to pop. :param any default: The value to return if key is not in the dictionary :returns: The value corresponding to the key. :rtype: any :raises KeyError: If key is not found and default is not given. |
| popitem |
Removes and returns some (key, value) pair :returns: The (key, value) pair. :rtype: tuple :raises KeyError: if the dictionary is empty. |
| setdefault |
Return the value for key if key is in the dictionary; otherwise set the key to default and return default. :param str key: The key to look up. :param any default: The value to set if key is not in the dictionary :returns: The value for key if key is in the dictionary, else default. :rtype: any |
| update |
Update the dictionary from a mapping or an iterable of key-value pairs. :param any args: Either a mapping object or an iterable of key-value pairs. |
| values |
as_dict
Return a dict that can be turned into json using json.dump.
as_dict(*, exclude_readonly: bool = False) -> dict[str, Any]
Keyword-Only Parameters
| Name | Description |
|---|---|
|
exclude_readonly
|
Whether to remove the readonly properties. Default value: False
|
Returns
| Type | Description |
|---|---|
|
A dict JSON compatible object |
clear
Remove all items from the dictionary.
clear() -> None
copy
copy() -> Model
get
Get the value for key if key is in the dictionary, else default. :param str key: The key to look up. :param any default: The value to return if key is not in the dictionary. Defaults to None :returns: The value for key if key is in the dictionary, else default. :rtype: any
get(key: str, default: Any = None) -> Any
Parameters
| Name | Description |
|---|---|
|
key
Required
|
|
|
default
|
Default value: None
|
items
items() -> ItemsView[str, Any]
Returns
| Type | Description |
|---|---|
|
a set-like object providing a view on the mapping's items |
keys
keys() -> KeysView[str]
Returns
| Type | Description |
|---|---|
|
a set-like object providing a view on the mapping's keys |
pop
Removes specified key and return the corresponding value. :param str key: The key to pop. :param any default: The value to return if key is not in the dictionary :returns: The value corresponding to the key. :rtype: any :raises KeyError: If key is not found and default is not given.
pop(key: str, default: ~typing.Any = <object object>) -> Any
Parameters
| Name | Description |
|---|---|
|
key
Required
|
|
|
default
|
|
popitem
Removes and returns some (key, value) pair :returns: The (key, value) pair. :rtype: tuple :raises KeyError: if the dictionary is empty.
popitem() -> tuple[str, Any]
setdefault
Return the value for key if key is in the dictionary; otherwise set the key to default and return default. :param str key: The key to look up. :param any default: The value to set if key is not in the dictionary :returns: The value for key if key is in the dictionary, else default. :rtype: any
setdefault(key: str, default: ~typing.Any = <object object>) -> Any
Parameters
| Name | Description |
|---|---|
|
key
Required
|
|
|
default
|
|
update
Update the dictionary from a mapping or an iterable of key-value pairs. :param any args: Either a mapping object or an iterable of key-value pairs.
update(*args: Any, **kwargs: Any) -> None
values
values() -> ValuesView[Any]
Returns
| Type | Description |
|---|---|
|
an object providing a view on the mapping's values |
Attributes
application_package_references
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.
application_package_references: list['_models.BatchApplicationPackageReference'] | None
display_name
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.
display_name: str | None
enable_inter_node_communication
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.
This field can be updated only when the pool is empty.
enable_inter_node_communication: bool | None
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.
metadata: list['_models.BatchMetadataItem'] | None
mount_configuration
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.
This field
can be updated only when the pool is empty.
mount_configuration: list['_models.MountConfiguration'] | None
network_configuration
The network configuration for the Pool. This field can be updated only when the pool is empty.
network_configuration: _models.NetworkConfiguration | None
start_task
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.
start_task: _models.BatchStartTask | None
task_scheduling_policy
How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is
spread.
This field can be updated only when the pool is empty.
task_scheduling_policy: _models.BatchTaskSchedulingPolicy | None
task_slots_per_node
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.
This field can be updated only when the pool
is empty.
task_slots_per_node: int | None
upgrade_policy
The upgrade policy for the Pool. Describes an upgrade policy - automatic, manual, or
rolling.
This field can be updated only when the pool is empty.
upgrade_policy: _models.UpgradePolicy | None
user_accounts
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.
user_accounts: list['_models.UserAccount'] | None
virtual_machine_configuration
The virtual machine configuration for the Pool. This property must be specified.
This field can be updated only when the pool is empty.
virtual_machine_configuration: _models.VirtualMachineConfiguration | None
vm_size
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).
This field can be
updated only when the pool is empty.
vm_size: str | None
vm_sku_profile
Specifies the profile of VM sizes and the allocation strategy used to allocate Compute Nodes
for an Instance Mix Pool. When specified, vmSize must be 'Mix'.
This field can be
updated only when the pool is empty.
vm_sku_profile: _models.VirtualMachineSkuProfile | None