Share via


BatchAccountPoolCollection.CreateOrUpdate Method

Definition

Creates a new pool inside the specified account.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}
  • Operation Id: Pool_Create
  • Default Api Version: 2024-02-01
  • Resource: BatchAccountPoolResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountPoolResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string poolName, Azure.ResourceManager.Batch.BatchAccountPoolData data, Azure.ETag? ifMatch = default, string ifNoneMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Batch.BatchAccountPoolData * Nullable<Azure.ETag> * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountPoolResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Batch.BatchAccountPoolData * Nullable<Azure.ETag> * string * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountPoolResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, poolName As String, data As BatchAccountPoolData, Optional ifMatch As Nullable(Of ETag) = Nothing, Optional ifNoneMatch As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of BatchAccountPoolResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

poolName
String

The pool name. This must be unique within the account.

data
BatchAccountPoolData

Additional parameters for pool creation.

ifMatch
Nullable<ETag>

The entity state (ETag) version of the pool to update. A value of "*" can be used to apply the operation only if the pool already exists. If omitted, this operation will always be applied.

ifNoneMatch
String

Set to '*' to allow a new pool to be created, but to prevent updating an existing pool. Other values will be ignored.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

poolName is an empty string, and was expected to be non-empty.

poolName or data is null.

Applies to