PoolOperationsExtensions.AddAsync(IPoolOperations, PoolAddParameter, PoolAddOptions, CancellationToken) Method

Definition

Adds a Pool to the specified Account.

public static System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.PoolAddHeaders> AddAsync (this Microsoft.Azure.Batch.Protocol.IPoolOperations operations, Microsoft.Azure.Batch.Protocol.Models.PoolAddParameter pool, Microsoft.Azure.Batch.Protocol.Models.PoolAddOptions poolAddOptions = default, System.Threading.CancellationToken cancellationToken = default);
static member AddAsync : Microsoft.Azure.Batch.Protocol.IPoolOperations * Microsoft.Azure.Batch.Protocol.Models.PoolAddParameter * Microsoft.Azure.Batch.Protocol.Models.PoolAddOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.Protocol.Models.PoolAddHeaders>
<Extension()>
Public Function AddAsync (operations As IPoolOperations, pool As PoolAddParameter, Optional poolAddOptions As PoolAddOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of PoolAddHeaders)

Parameters

operations
IPoolOperations

The operations group for this extension method.

pool
PoolAddParameter

The Pool to be added.

poolAddOptions
PoolAddOptions

Additional parameters for the operation

cancellationToken
CancellationToken

The cancellation token.

Returns

Task<PoolAddHeaders>

Remarks

When naming Pools, avoid including sensitive information such as user names or secret project names. This information may appear in telemetry logs accessible to Microsoft Support engineers.

Applies to