CloudPool interface
An interface representing CloudPool.
Properties
| allocation |
Whether the Pool is resizing. Possible values include: 'steady', 'resizing', 'stopping' |
| allocation |
The time at which the Pool entered its current allocation state. |
| application |
The list of application licenses the Batch service will make available on each Compute Node in the Pool. The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, Pool creation will fail. |
| application |
The 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. There is a maximum of 10 Package references on any given Pool. |
| auto |
The time interval at which to automatically adjust the Pool size according to the autoscale formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true. |
| auto |
A formula for the desired number of Compute Nodes in the Pool. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true. |
| auto |
The results and errors from the last execution of the autoscale formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true. |
| certificate |
The list of Certificates to be installed on each Compute Node in the Pool. For Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory. |
| cloud |
The cloud service configuration for the Pool. This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This property cannot be specified if the Batch Account was created with its poolAllocationMode property set to 'UserSubscription'. |
| creation |
The creation time of the Pool. |
| current |
The number of dedicated Compute Nodes currently in the Pool. |
| current |
The number of low-priority Compute Nodes currently in the Pool. Low-priority Compute Nodes which have been preempted are included in this count. |
| display |
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. |
| enable |
Whether the Pool size should automatically adjust over time. If false, at least one of targetDedicateNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula property is required and the Pool automatically resizes according to the formula. The default value is false. |
| enable |
Whether the Pool permits direct communication between Compute Nodes. This imposes restrictions on which Compute Nodes can be assigned to the Pool. Specifying this value can reduce the chance of the requested number of Compute Nodes to be allocated in the Pool. |
| e |
The ETag of the Pool. This is an opaque string. You can use it to detect whether the Pool has changed between requests. In particular, you can be pass the ETag when updating a Pool to specify that your changes should take effect only if nobody else has modified the Pool in the meantime. |
| id | A string that uniquely identifies the Pool within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case). |
| last |
The last modified time of the Pool. This is the last time at which the Pool level data, such as the targetDedicatedNodes or enableAutoscale settings, changed. It does not factor in node-level changes such as a Compute Node changing state. |
| metadata | A list of name-value pairs associated with the Pool as metadata. |
| mount |
A list of file systems to mount on each node in the pool. This supports Azure Files, NFS, CIFS/SMB, and Blobfuse. |
| network |
The network configuration for the Pool. |
| resize |
A list of errors encountered while performing the last resize on the Pool. This property is set only if one or more errors occurred during the last Pool resize, and only when the Pool allocationState is Steady. |
| resize |
The timeout for allocation of Compute Nodes to the Pool. This is the timeout for the most recent resize operation. (The initial sizing when the Pool is created counts as a resize.) The default value is 15 minutes. |
| start |
A Task specified to run on each Compute Node as it joins the Pool. |
| state | The current state of the Pool. Possible values include: 'active', 'deleting' |
| state |
The time at which the Pool entered its current state. |
| stats | Utilization and resource usage statistics for the entire lifetime of the Pool. This property is populated only if the CloudPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes. |
| target |
The desired number of dedicated Compute Nodes in the Pool. |
| target |
The desired number of low-priority Compute Nodes in the Pool. |
| task |
How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread. |
| task |
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. |
| url | The URL of the Pool. |
| user |
The list of user Accounts to be created on each Compute Node in the Pool. |
| virtual |
The virtual machine configuration for the Pool. This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified. |
| vm |
The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes). |
Property Details
allocationState
Whether the Pool is resizing. Possible values include: 'steady', 'resizing', 'stopping'
allocationState?: AllocationState
Property Value
allocationStateTransitionTime
The time at which the Pool entered its current allocation state.
allocationStateTransitionTime?: Date
Property Value
Date
applicationLicenses
The list of application licenses the Batch service will make available on each Compute Node in the Pool. The list of application licenses must be a subset of available Batch service application licenses. If a license is requested which is not supported, Pool creation will fail.
applicationLicenses?: string[]
Property Value
string[]
applicationPackageReferences
The 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. There is a maximum of 10 Package references on any given Pool.
applicationPackageReferences?: ApplicationPackageReference[]
Property Value
autoScaleEvaluationInterval
The time interval at which to automatically adjust the Pool size according to the autoscale formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.
autoScaleEvaluationInterval?: string
Property Value
string
autoScaleFormula
A formula for the desired number of Compute Nodes in the Pool. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.
autoScaleFormula?: string
Property Value
string
autoScaleRun
The results and errors from the last execution of the autoscale formula. This property is set only if the Pool automatically scales, i.e. enableAutoScale is true.
autoScaleRun?: AutoScaleRun
Property Value
certificateReferences
The list of Certificates to be installed on each Compute Node in the Pool. For Windows Nodes, the Batch service installs the Certificates to the specified Certificate store and location. For Linux Compute Nodes, the Certificates are stored in a directory inside the Task working directory and an environment variable AZ_BATCH_CERTIFICATES_DIR is supplied to the Task to query for this location. For Certificates with visibility of 'remoteUser', a 'certs' directory is created in the user's home directory (e.g., /home/{user-name}/certs) and Certificates are placed in that directory.
certificateReferences?: CertificateReference[]
Property Value
cloudServiceConfiguration
The cloud service configuration for the Pool. This property and virtualMachineConfiguration are mutually exclusive and one of the properties must be specified. This property cannot be specified if the Batch Account was created with its poolAllocationMode property set to 'UserSubscription'.
cloudServiceConfiguration?: CloudServiceConfiguration
Property Value
creationTime
The creation time of the Pool.
creationTime?: Date
Property Value
Date
currentDedicatedNodes
The number of dedicated Compute Nodes currently in the Pool.
currentDedicatedNodes?: number
Property Value
number
currentLowPriorityNodes
The number of low-priority Compute Nodes currently in the Pool. Low-priority Compute Nodes which have been preempted are included in this count.
currentLowPriorityNodes?: number
Property Value
number
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.
displayName?: string
Property Value
string
enableAutoScale
Whether the Pool size should automatically adjust over time. If false, at least one of targetDedicateNodes and targetLowPriorityNodes must be specified. If true, the autoScaleFormula property is required and the Pool automatically resizes according to the formula. The default value is false.
enableAutoScale?: boolean
Property Value
boolean
enableInterNodeCommunication
Whether the Pool permits direct communication between Compute Nodes. This imposes restrictions on which Compute Nodes can be assigned to the Pool. Specifying this value can reduce the chance of the requested number of Compute Nodes to be allocated in the Pool.
enableInterNodeCommunication?: boolean
Property Value
boolean
eTag
The ETag of the Pool. This is an opaque string. You can use it to detect whether the Pool has changed between requests. In particular, you can be pass the ETag when updating a Pool to specify that your changes should take effect only if nobody else has modified the Pool in the meantime.
eTag?: string
Property Value
string
id
A string that uniquely identifies the Pool within the Account. The ID can contain any combination of alphanumeric characters including hyphens and underscores, and cannot contain more than 64 characters. The ID is case-preserving and case-insensitive (that is, you may not have two IDs within an Account that differ only by case).
id?: string
Property Value
string
lastModified
The last modified time of the Pool. This is the last time at which the Pool level data, such as the targetDedicatedNodes or enableAutoscale settings, changed. It does not factor in node-level changes such as a Compute Node changing state.
lastModified?: Date
Property Value
Date
metadata
A list of name-value pairs associated with the Pool as metadata.
metadata?: MetadataItem[]
Property Value
mountConfiguration
A list of file systems to mount on each node in the pool. This supports Azure Files, NFS, CIFS/SMB, and Blobfuse.
mountConfiguration?: MountConfiguration[]
Property Value
networkConfiguration
The network configuration for the Pool.
networkConfiguration?: NetworkConfiguration
Property Value
resizeErrors
A list of errors encountered while performing the last resize on the Pool. This property is set only if one or more errors occurred during the last Pool resize, and only when the Pool allocationState is Steady.
resizeErrors?: ResizeError[]
Property Value
resizeTimeout
The timeout for allocation of Compute Nodes to the Pool. This is the timeout for the most recent resize operation. (The initial sizing when the Pool is created counts as a resize.) The default value is 15 minutes.
resizeTimeout?: string
Property Value
string
startTask
A Task specified to run on each Compute Node as it joins the Pool.
startTask?: StartTask
Property Value
state
The current state of the Pool. Possible values include: 'active', 'deleting'
state?: PoolState
Property Value
stateTransitionTime
The time at which the Pool entered its current state.
stateTransitionTime?: Date
Property Value
Date
stats
Utilization and resource usage statistics for the entire lifetime of the Pool. This property is populated only if the CloudPool was retrieved with an expand clause including the 'stats' attribute; otherwise it is null. The statistics may not be immediately available. The Batch service performs periodic roll-up of statistics. The typical delay is about 30 minutes.
stats?: PoolStatistics
Property Value
targetDedicatedNodes
The desired number of dedicated Compute Nodes in the Pool.
targetDedicatedNodes?: number
Property Value
number
targetLowPriorityNodes
The desired number of low-priority Compute Nodes in the Pool.
targetLowPriorityNodes?: number
Property Value
number
taskSchedulingPolicy
How Tasks are distributed across Compute Nodes in a Pool. If not specified, the default is spread.
taskSchedulingPolicy?: TaskSchedulingPolicy
Property Value
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.
taskSlotsPerNode?: number
Property Value
number
url
The URL of the Pool.
url?: string
Property Value
string
userAccounts
The list of user Accounts to be created on each Compute Node in the Pool.
userAccounts?: UserAccount[]
Property Value
virtualMachineConfiguration
The virtual machine configuration for the Pool. This property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified.
virtualMachineConfiguration?: VirtualMachineConfiguration
Property Value
vmSize
The size of virtual machines in the Pool. All virtual machines in a Pool are the same size. For information about available sizes of virtual machines in Pools, see Choose a VM size for Compute Nodes in an Azure Batch Pool (https://docs.microsoft.com/azure/batch/batch-pool-vm-sizes).
vmSize?: string
Property Value
string