PoolOperations.CreatePool Method

Definition

Overloads

CreatePool()

Creates an instance of CloudPool that is unbound and does not have a consistency relationship to any pool in the Batch service.

CreatePool(String, String, CloudServiceConfiguration, Nullable<Int32>, Nullable<Int32>)

Creates an instance of CloudPool that is unbound and does not have a consistency relationship to any pool in the Batch service.

CreatePool(String, String, VirtualMachineConfiguration, Nullable<Int32>, Nullable<Int32>)

Creates an instance of CloudPool that is unbound and does not have a consistency relationship to any pool in the Batch service.

CreatePool()

Creates an instance of CloudPool that is unbound and does not have a consistency relationship to any pool in the Batch service.

public Microsoft.Azure.Batch.CloudPool CreatePool ();
member this.CreatePool : unit -> Microsoft.Azure.Batch.CloudPool
Public Function CreatePool () As CloudPool

Returns

A CloudPool representing a new pool that has not been added to the Batch service. To add the pool to the Batch account, call CommitAsync(IEnumerable<BatchClientBehavior>, CancellationToken).

Applies to

CreatePool(String, String, CloudServiceConfiguration, Nullable<Int32>, Nullable<Int32>)

Creates an instance of CloudPool that is unbound and does not have a consistency relationship to any pool in the Batch service.

public Microsoft.Azure.Batch.CloudPool CreatePool (string poolId, string virtualMachineSize, Microsoft.Azure.Batch.CloudServiceConfiguration cloudServiceConfiguration, int? targetDedicatedComputeNodes = default, int? targetLowPriorityComputeNodes = default);
member this.CreatePool : string * string * Microsoft.Azure.Batch.CloudServiceConfiguration * Nullable<int> * Nullable<int> -> Microsoft.Azure.Batch.CloudPool
Public Function CreatePool (poolId As String, virtualMachineSize As String, cloudServiceConfiguration As CloudServiceConfiguration, Optional targetDedicatedComputeNodes As Nullable(Of Integer) = Nothing, Optional targetLowPriorityComputeNodes As Nullable(Of Integer) = Nothing) As CloudPool

Parameters

poolId
String

The id of the pool.

virtualMachineSize
String

The size of virtual machines in the pool. See https://azure.microsoft.com/documentation/articles/cloud-services-sizes-specs/ for sizes. Batch supports all Azure cloud service VM sizes except ExtraSmall, A1V2 and A2V2.

cloudServiceConfiguration
CloudServiceConfiguration

The CloudServiceConfiguration for the pool.

targetDedicatedComputeNodes
Nullable<Int32>

The desired number of dedicated compute nodes in the pool. If targetDedicatedComputeNodes and targetLowPriorityComputeNodes are omitted, you must set the AutoScaleEnabled and AutoScaleFormula properties.

targetLowPriorityComputeNodes
Nullable<Int32>

The desired number of low-priority compute nodes in the pool. If targetDedicatedComputeNodes and targetLowPriorityComputeNodes are omitted, you must set the AutoScaleEnabled and AutoScaleFormula properties.

Returns

A CloudPool representing a new pool that has not been added to the Batch service. To add the pool to the Batch account, call CommitAsync(IEnumerable<BatchClientBehavior>, CancellationToken).

Remarks

For information about Azure Guest OS families, see https://azure.microsoft.com/documentation/articles/cloud-services-guestos-update-matrix/

Applies to

CreatePool(String, String, VirtualMachineConfiguration, Nullable<Int32>, Nullable<Int32>)

Creates an instance of CloudPool that is unbound and does not have a consistency relationship to any pool in the Batch service.

public Microsoft.Azure.Batch.CloudPool CreatePool (string poolId, string virtualMachineSize, Microsoft.Azure.Batch.VirtualMachineConfiguration virtualMachineConfiguration, int? targetDedicatedComputeNodes = default, int? targetLowPriorityComputeNodes = default);
member this.CreatePool : string * string * Microsoft.Azure.Batch.VirtualMachineConfiguration * Nullable<int> * Nullable<int> -> Microsoft.Azure.Batch.CloudPool
Public Function CreatePool (poolId As String, virtualMachineSize As String, virtualMachineConfiguration As VirtualMachineConfiguration, Optional targetDedicatedComputeNodes As Nullable(Of Integer) = Nothing, Optional targetLowPriorityComputeNodes As Nullable(Of Integer) = Nothing) As CloudPool

Parameters

poolId
String

The id of the pool.

virtualMachineConfiguration
VirtualMachineConfiguration

The VirtualMachineConfiguration for the pool.

targetDedicatedComputeNodes
Nullable<Int32>

The desired number of dedicated compute nodes in the pool. If targetDedicatedComputeNodes and targetLowPriorityComputeNodes are omitted, you must set the AutoScaleEnabled and AutoScaleFormula properties.

targetLowPriorityComputeNodes
Nullable<Int32>

The desired number of low-priority compute nodes in the pool. If targetDedicatedComputeNodes and targetLowPriorityComputeNodes are omitted, you must set the AutoScaleEnabled and AutoScaleFormula properties.

Returns

A CloudPool representing a new pool that has not been added to the Batch service. To add the pool to the Batch account, call CommitAsync(IEnumerable<BatchClientBehavior>, CancellationToken).

Applies to