PoolOperations.CreatePool Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
- 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
- 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.
- virtualMachineSize
- String
The size of virtual machines in the pool. See https://azure.microsoft.com/documentation/articles/virtual-machines-windows-sizes/ for windows sizes and https://azure.microsoft.com/documentation/articles/virtual-machines-linux-sizes/ for linux sizes.
- virtualMachineConfiguration
- VirtualMachineConfiguration
The VirtualMachineConfiguration for the pool.
The desired number of dedicated compute nodes in the pool.
If targetDedicatedComputeNodes
and targetLowPriorityComputeNodes
are omitted,
you must set the AutoScaleEnabled and AutoScaleFormula properties.
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
Azure SDK for .NET feedback
Azure SDK for .NET is an open source project. Select a link to provide feedback: