BatchAccountOperationsExtensions.CreateAsync(IBatchAccountOperations, String, String, BatchAccountCreateParametersInner, CancellationToken) BatchAccountOperationsExtensions.CreateAsync(IBatchAccountOperations, String, String, BatchAccountCreateParametersInner, CancellationToken) 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.Fluent.Models.BatchAccountInner> CreateAsync (this Microsoft.Azure.Management.Batch.Fluent.IBatchAccountOperations operations, string resourceGroupName, string accountName, Microsoft.Azure.Management.Batch.Fluent.Models.BatchAccountCreateParametersInner parameters, System.Threading.CancellationToken cancellationToken = null);
static member CreateAsync : Microsoft.Azure.Management.Batch.Fluent.IBatchAccountOperations * string * string * Microsoft.Azure.Management.Batch.Fluent.Models.BatchAccountCreateParametersInner * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Batch.Fluent.Models.BatchAccountInner>

Parameters

operations
IBatchAccountOperations IBatchAccountOperations

The operations group for this extension method.

resourceGroupName
String String

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

accountName
String 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
BatchAccountCreateParametersInner BatchAccountCreateParametersInner

Additional parameters for account creation.

cancellationToken
CancellationToken CancellationToken

The cancellation token.

Returns

Applies to