Share via


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, 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()

Source:
PoolOperations.cs

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 ();

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, VirtualMachineConfiguration, Nullable<Int32>, Nullable<Int32>)

Source:
PoolOperations.cs

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

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