CloudPool Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.CloudPool

public class CloudPool

A pool in the Azure Batch service.

Method Summary

Modifier and Type Method and Description
AllocationState allocationState()

Get possible values include: 'steady', 'resizing', 'stopping'.

DateTime allocationStateTransitionTime()

Get the allocationStateTransitionTime value.

List<String> applicationLicenses()

Get 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.

List<ApplicationPackageReference> applicationPackageReferences()

Get the applicationPackageReferences value.

Period autoScaleEvaluationInterval()

Get this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

String autoScaleFormula()

Get this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

AutoScaleRun autoScaleRun()

Get this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

List<CertificateReference> certificateReferences()

Get for Windows compute 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.

CloudServiceConfiguration cloudServiceConfiguration()

Get 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'.

DateTime creationTime()

Get the creationTime value.

Integer currentDedicatedNodes()

Get the currentDedicatedNodes value.

Integer currentLowPriorityNodes()

Get low-priority compute nodes which have been preempted are included in this count.

String displayName()

Get the display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.

Boolean enableAutoScale()

Get 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.

Boolean enableInterNodeCommunication()

Get this imposes restrictions on which nodes can be assigned to the pool. Specifying this value can reduce the chance of the requested number of nodes to be allocated in the pool.

String eTag()

Get 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.

String id()

Get 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).

DateTime lastModified()

Get 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.

Integer maxTasksPerNode()

Get the maxTasksPerNode value.

List<MetadataItem> metadata()

Get the metadata value.

NetworkConfiguration networkConfiguration()

Get the networkConfiguration value.

List<ResizeError> resizeErrors()

Get this property is set only if one or more errors occurred during the last pool resize, and only when the pool allocationState is Steady.

Period resizeTimeout()

Get 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.

StartTask startTask()

Get the startTask value.

PoolState state()

Get possible values include: 'active', 'deleting'.

DateTime stateTransitionTime()

Get the stateTransitionTime value.

PoolStatistics stats()

Get the stats value.

Integer targetDedicatedNodes()

Get the targetDedicatedNodes value.

Integer targetLowPriorityNodes()

Get the targetLowPriorityNodes value.

TaskSchedulingPolicy taskSchedulingPolicy()

Get the taskSchedulingPolicy value.

String url()

Get the url value.

List<UserAccount> userAccounts()

Get the userAccounts value.

VirtualMachineConfiguration virtualMachineConfiguration()

Get this property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified.

String vmSize()

Get 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).

CloudPool withAllocationState(AllocationState allocationState)

Set possible values include: 'steady', 'resizing', 'stopping'.

CloudPool withAllocationStateTransitionTime(DateTime allocationStateTransitionTime)

Set the allocationStateTransitionTime value.

CloudPool withApplicationLicenses(List<String> applicationLicenses)

Set 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.

CloudPool withApplicationPackageReferences(List<ApplicationPackageReference> applicationPackageReferences)

Set the applicationPackageReferences value.

CloudPool withAutoScaleEvaluationInterval(Period autoScaleEvaluationInterval)

Set this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

CloudPool withAutoScaleFormula(String autoScaleFormula)

Set this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

CloudPool withAutoScaleRun(AutoScaleRun autoScaleRun)

Set this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

CloudPool withCertificateReferences(List<CertificateReference> certificateReferences)

Set for Windows compute 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.

CloudPool withCloudServiceConfiguration(CloudServiceConfiguration cloudServiceConfiguration)

Set 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'.

CloudPool withCreationTime(DateTime creationTime)

Set the creationTime value.

CloudPool withCurrentDedicatedNodes(Integer currentDedicatedNodes)

Set the currentDedicatedNodes value.

CloudPool withCurrentLowPriorityNodes(Integer currentLowPriorityNodes)

Set low-priority compute nodes which have been preempted are included in this count.

CloudPool withDisplayName(String displayName)

Set the display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.

CloudPool withEnableAutoScale(Boolean enableAutoScale)

Set 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.

CloudPool withEnableInterNodeCommunication(Boolean enableInterNodeCommunication)

Set this imposes restrictions on which nodes can be assigned to the pool. Specifying this value can reduce the chance of the requested number of nodes to be allocated in the pool.

CloudPool withETag(String eTag)

Set 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.

CloudPool withId(String id)

Set 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).

CloudPool withLastModified(DateTime lastModified)

Set 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.

CloudPool withMaxTasksPerNode(Integer maxTasksPerNode)

Set the maxTasksPerNode value.

CloudPool withMetadata(List<MetadataItem> metadata)

Set the metadata value.

CloudPool withNetworkConfiguration(NetworkConfiguration networkConfiguration)

Set the networkConfiguration value.

CloudPool withResizeErrors(List<ResizeError> resizeErrors)

Set this property is set only if one or more errors occurred during the last pool resize, and only when the pool allocationState is Steady.

CloudPool withResizeTimeout(Period resizeTimeout)

Set 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.

CloudPool withStartTask(StartTask startTask)

Set the startTask value.

CloudPool withState(PoolState state)

Set possible values include: 'active', 'deleting'.

CloudPool withStateTransitionTime(DateTime stateTransitionTime)

Set the stateTransitionTime value.

CloudPool withStats(PoolStatistics stats)

Set the stats value.

CloudPool withTargetDedicatedNodes(Integer targetDedicatedNodes)

Set the targetDedicatedNodes value.

CloudPool withTargetLowPriorityNodes(Integer targetLowPriorityNodes)

Set the targetLowPriorityNodes value.

CloudPool withTaskSchedulingPolicy(TaskSchedulingPolicy taskSchedulingPolicy)

Set the taskSchedulingPolicy value.

CloudPool withUrl(String url)

Set the url value.

CloudPool withUserAccounts(List<UserAccount> userAccounts)

Set the userAccounts value.

CloudPool withVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration)

Set this property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified.

CloudPool withVmSize(String vmSize)

Set 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).

Method Details

allocationState

public AllocationState allocationState()

Get possible values include: 'steady', 'resizing', 'stopping'.

Returns:

the allocationState value

allocationStateTransitionTime

public DateTime allocationStateTransitionTime()

Get the allocationStateTransitionTime value.

Returns:

the allocationStateTransitionTime value

applicationLicenses

public List applicationLicenses()

Get 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.

Returns:

the applicationLicenses value

applicationPackageReferences

public List applicationPackageReferences()

Get the applicationPackageReferences value.

Returns:

the applicationPackageReferences value

autoScaleEvaluationInterval

public Period autoScaleEvaluationInterval()

Get this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

Returns:

the autoScaleEvaluationInterval value

autoScaleFormula

public String autoScaleFormula()

Get this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

Returns:

the autoScaleFormula value

autoScaleRun

public AutoScaleRun autoScaleRun()

Get this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

Returns:

the autoScaleRun value

certificateReferences

public List certificateReferences()

Get for Windows compute 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.

Returns:

the certificateReferences value

cloudServiceConfiguration

public CloudServiceConfiguration cloudServiceConfiguration()

Get 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'.

Returns:

the cloudServiceConfiguration value

creationTime

public DateTime creationTime()

Get the creationTime value.

Returns:

the creationTime value

currentDedicatedNodes

public Integer currentDedicatedNodes()

Get the currentDedicatedNodes value.

Returns:

the currentDedicatedNodes value

currentLowPriorityNodes

public Integer currentLowPriorityNodes()

Get low-priority compute nodes which have been preempted are included in this count.

Returns:

the currentLowPriorityNodes value

displayName

public String displayName()

Get the display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.

Returns:

the displayName value

enableAutoScale

public Boolean enableAutoScale()

Get 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.

Returns:

the enableAutoScale value

enableInterNodeCommunication

public Boolean enableInterNodeCommunication()

Get this imposes restrictions on which nodes can be assigned to the pool. Specifying this value can reduce the chance of the requested number of nodes to be allocated in the pool.

Returns:

the enableInterNodeCommunication value

eTag

public String eTag()

Get 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.

Returns:

the eTag value

id

public String id()

Get 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).

Returns:

the id value

lastModified

public DateTime lastModified()

Get 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.

Returns:

the lastModified value

maxTasksPerNode

public Integer maxTasksPerNode()

Get the maxTasksPerNode value.

Returns:

the maxTasksPerNode value

metadata

public List metadata()

Get the metadata value.

Returns:

the metadata value

networkConfiguration

public NetworkConfiguration networkConfiguration()

Get the networkConfiguration value.

Returns:

the networkConfiguration value

resizeErrors

public List resizeErrors()

Get this property is set only if one or more errors occurred during the last pool resize, and only when the pool allocationState is Steady.

Returns:

the resizeErrors value

resizeTimeout

public Period resizeTimeout()

Get 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.

Returns:

the resizeTimeout value

startTask

public StartTask startTask()

Get the startTask value.

Returns:

the startTask value

state

public PoolState state()

Get possible values include: 'active', 'deleting'.

Returns:

the state value

stateTransitionTime

public DateTime stateTransitionTime()

Get the stateTransitionTime value.

Returns:

the stateTransitionTime value

stats

public PoolStatistics stats()

Get the stats value.

Returns:

the stats value

targetDedicatedNodes

public Integer targetDedicatedNodes()

Get the targetDedicatedNodes value.

Returns:

the targetDedicatedNodes value

targetLowPriorityNodes

public Integer targetLowPriorityNodes()

Get the targetLowPriorityNodes value.

Returns:

the targetLowPriorityNodes value

taskSchedulingPolicy

public TaskSchedulingPolicy taskSchedulingPolicy()

Get the taskSchedulingPolicy value.

Returns:

the taskSchedulingPolicy value

url

public String url()

Get the url value.

Returns:

the url value

userAccounts

public List userAccounts()

Get the userAccounts value.

Returns:

the userAccounts value

virtualMachineConfiguration

public VirtualMachineConfiguration virtualMachineConfiguration()

Get this property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified.

Returns:

the virtualMachineConfiguration value

vmSize

public String vmSize()

Get 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).

Returns:

the vmSize value

withAllocationState

public CloudPool withAllocationState(AllocationState allocationState)

Set possible values include: 'steady', 'resizing', 'stopping'.

Parameters:

allocationState - the allocationState value to set

Returns:

the CloudPool object itself.

withAllocationStateTransitionTime

public CloudPool withAllocationStateTransitionTime(DateTime allocationStateTransitionTime)

Set the allocationStateTransitionTime value.

Parameters:

allocationStateTransitionTime - the allocationStateTransitionTime value to set

Returns:

the CloudPool object itself.

withApplicationLicenses

public CloudPool withApplicationLicenses(List applicationLicenses)

Set 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.

Parameters:

applicationLicenses - the applicationLicenses value to set

Returns:

the CloudPool object itself.

withApplicationPackageReferences

public CloudPool withApplicationPackageReferences(List applicationPackageReferences)

Set the applicationPackageReferences value.

Parameters:

applicationPackageReferences - the applicationPackageReferences value to set

Returns:

the CloudPool object itself.

withAutoScaleEvaluationInterval

public CloudPool withAutoScaleEvaluationInterval(Period autoScaleEvaluationInterval)

Set this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

Parameters:

autoScaleEvaluationInterval - the autoScaleEvaluationInterval value to set

Returns:

the CloudPool object itself.

withAutoScaleFormula

public CloudPool withAutoScaleFormula(String autoScaleFormula)

Set this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

Parameters:

autoScaleFormula - the autoScaleFormula value to set

Returns:

the CloudPool object itself.

withAutoScaleRun

public CloudPool withAutoScaleRun(AutoScaleRun autoScaleRun)

Set this property is set only if the pool automatically scales, i.e. enableAutoScale is true.

Parameters:

autoScaleRun - the autoScaleRun value to set

Returns:

the CloudPool object itself.

withCertificateReferences

public CloudPool withCertificateReferences(List certificateReferences)

Set for Windows compute 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.

Parameters:

certificateReferences - the certificateReferences value to set

Returns:

the CloudPool object itself.

withCloudServiceConfiguration

public CloudPool withCloudServiceConfiguration(CloudServiceConfiguration cloudServiceConfiguration)

Set 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'.

Parameters:

cloudServiceConfiguration - the cloudServiceConfiguration value to set

Returns:

the CloudPool object itself.

withCreationTime

public CloudPool withCreationTime(DateTime creationTime)

Set the creationTime value.

Parameters:

creationTime - the creationTime value to set

Returns:

the CloudPool object itself.

withCurrentDedicatedNodes

public CloudPool withCurrentDedicatedNodes(Integer currentDedicatedNodes)

Set the currentDedicatedNodes value.

Parameters:

currentDedicatedNodes - the currentDedicatedNodes value to set

Returns:

the CloudPool object itself.

withCurrentLowPriorityNodes

public CloudPool withCurrentLowPriorityNodes(Integer currentLowPriorityNodes)

Set low-priority compute nodes which have been preempted are included in this count.

Parameters:

currentLowPriorityNodes - the currentLowPriorityNodes value to set

Returns:

the CloudPool object itself.

withDisplayName

public CloudPool withDisplayName(String displayName)

Set the display name need not be unique and can contain any Unicode characters up to a maximum length of 1024.

Parameters:

displayName - the displayName value to set

Returns:

the CloudPool object itself.

withEnableAutoScale

public CloudPool withEnableAutoScale(Boolean enableAutoScale)

Set 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.

Parameters:

enableAutoScale - the enableAutoScale value to set

Returns:

the CloudPool object itself.

withEnableInterNodeCommunication

public CloudPool withEnableInterNodeCommunication(Boolean enableInterNodeCommunication)

Set this imposes restrictions on which nodes can be assigned to the pool. Specifying this value can reduce the chance of the requested number of nodes to be allocated in the pool.

Parameters:

enableInterNodeCommunication - the enableInterNodeCommunication value to set

Returns:

the CloudPool object itself.

withETag

public CloudPool withETag(String eTag)

Set 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.

Parameters:

eTag - the eTag value to set

Returns:

the CloudPool object itself.

withId

public CloudPool withId(String id)

Set 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).

Parameters:

id - the id value to set

Returns:

the CloudPool object itself.

withLastModified

public CloudPool withLastModified(DateTime lastModified)

Set 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.

Parameters:

lastModified - the lastModified value to set

Returns:

the CloudPool object itself.

withMaxTasksPerNode

public CloudPool withMaxTasksPerNode(Integer maxTasksPerNode)

Set the maxTasksPerNode value.

Parameters:

maxTasksPerNode - the maxTasksPerNode value to set

Returns:

the CloudPool object itself.

withMetadata

public CloudPool withMetadata(List metadata)

Set the metadata value.

Parameters:

metadata - the metadata value to set

Returns:

the CloudPool object itself.

withNetworkConfiguration

public CloudPool withNetworkConfiguration(NetworkConfiguration networkConfiguration)

Set the networkConfiguration value.

Parameters:

networkConfiguration - the networkConfiguration value to set

Returns:

the CloudPool object itself.

withResizeErrors

public CloudPool withResizeErrors(List resizeErrors)

Set this property is set only if one or more errors occurred during the last pool resize, and only when the pool allocationState is Steady.

Parameters:

resizeErrors - the resizeErrors value to set

Returns:

the CloudPool object itself.

withResizeTimeout

public CloudPool withResizeTimeout(Period resizeTimeout)

Set 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.

Parameters:

resizeTimeout - the resizeTimeout value to set

Returns:

the CloudPool object itself.

withStartTask

public CloudPool withStartTask(StartTask startTask)

Set the startTask value.

Parameters:

startTask - the startTask value to set

Returns:

the CloudPool object itself.

withState

public CloudPool withState(PoolState state)

Set possible values include: 'active', 'deleting'.

Parameters:

state - the state value to set

Returns:

the CloudPool object itself.

withStateTransitionTime

public CloudPool withStateTransitionTime(DateTime stateTransitionTime)

Set the stateTransitionTime value.

Parameters:

stateTransitionTime - the stateTransitionTime value to set

Returns:

the CloudPool object itself.

withStats

public CloudPool withStats(PoolStatistics stats)

Set the stats value.

Parameters:

stats - the stats value to set

Returns:

the CloudPool object itself.

withTargetDedicatedNodes

public CloudPool withTargetDedicatedNodes(Integer targetDedicatedNodes)

Set the targetDedicatedNodes value.

Parameters:

targetDedicatedNodes - the targetDedicatedNodes value to set

Returns:

the CloudPool object itself.

withTargetLowPriorityNodes

public CloudPool withTargetLowPriorityNodes(Integer targetLowPriorityNodes)

Set the targetLowPriorityNodes value.

Parameters:

targetLowPriorityNodes - the targetLowPriorityNodes value to set

Returns:

the CloudPool object itself.

withTaskSchedulingPolicy

public CloudPool withTaskSchedulingPolicy(TaskSchedulingPolicy taskSchedulingPolicy)

Set the taskSchedulingPolicy value.

Parameters:

taskSchedulingPolicy - the taskSchedulingPolicy value to set

Returns:

the CloudPool object itself.

withUrl

public CloudPool withUrl(String url)

Set the url value.

Parameters:

url - the url value to set

Returns:

the CloudPool object itself.

withUserAccounts

public CloudPool withUserAccounts(List userAccounts)

Set the userAccounts value.

Parameters:

userAccounts - the userAccounts value to set

Returns:

the CloudPool object itself.

withVirtualMachineConfiguration

public CloudPool withVirtualMachineConfiguration(VirtualMachineConfiguration virtualMachineConfiguration)

Set this property and cloudServiceConfiguration are mutually exclusive and one of the properties must be specified.

Parameters:

virtualMachineConfiguration - the virtualMachineConfiguration value to set

Returns:

the CloudPool object itself.

withVmSize

public CloudPool withVmSize(String vmSize)

Set 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).

Parameters:

vmSize - the vmSize value to set

Returns:

the CloudPool object itself.

Applies to