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. : Pools_Create.
  • Default Api Version. : 2025-06-01.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountPoolResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string poolName, Azure.ResourceManager.Batch.BatchAccountPoolData data, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Batch.BatchAccountPoolData * Azure.MatchConditions * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountPoolResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Batch.BatchAccountPoolData * Azure.MatchConditions * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountPoolResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, poolName As String, data As BatchAccountPoolData, Optional matchConditions As MatchConditions = 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.

matchConditions
MatchConditions

The content to send as the request conditions of the request.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

poolName or data is null.

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

Applies to