Share via


BatchAccountOperationsExtensions.CreateAsync Method

Definition

Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.BatchAccount> CreateAsync (this Microsoft.Azure.Management.Batch.IBatchAccountOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.Batch.Models.BatchAccountCreateParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.Batch.IBatchAccountOperations * string * string * Microsoft.Azure.Management.Batch.Models.BatchAccountCreateParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Models.BatchAccount>
<Extension()>
Public Function CreateAsync (operations As IBatchAccountOperations, resourceGroupName As String, accountName As String, parameters As BatchAccountCreateParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of BatchAccount)

Parameters

operations
IBatchAccountOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group that contains the Batch account.

accountName
String

A name for the Batch account which must be unique within the region. Batch account names must be between 3 and 24 characters in length and must use only numbers and lowercase letters. This name is used as part of the DNS name that is used to access the Batch service in the region in which the account is created. For example: http://accountname.region.batch.azure.com/.

parameters
BatchAccountCreateParameters

Additional parameters for account creation.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to