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