Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
BatchAccountPoolCollection.CreateOrUpdateAsync Method
Definition
- Namespace:
- Azure.ResourceManager.Batch
- Assembly:
- Azure.ResourceManager.Batch.dll
- Package:
- Azure.ResourceManager.Batch v1.7.0
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.
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 System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountPoolResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string poolName, Azure.ResourceManager.Batch.BatchAccountPoolData data, Azure.MatchConditions matchConditions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Batch.BatchAccountPoolData * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountPoolResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.Batch.BatchAccountPoolData * Azure.MatchConditions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Batch.BatchAccountPoolResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, poolName As String, data As BatchAccountPoolData, Optional matchConditions As MatchConditions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
Azure SDK for .NET
Feedback
Was this page helpful?
