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

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, Nullable<int> targetDedicatedComputeNodes = null, Nullable<int> targetLowPriorityComputeNodes = null);
member this.CreatePool : string * string * Microsoft.Azure.Batch.CloudServiceConfiguration * Nullable<int> * Nullable<int> -> Microsoft.Azure.Batch.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/

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, Nullable<int> targetDedicatedComputeNodes = null, Nullable<int> targetLowPriorityComputeNodes = null);
member this.CreatePool : string * string * Microsoft.Azure.Batch.VirtualMachineConfiguration * Nullable<int> * Nullable<int> -> Microsoft.Azure.Batch.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