Share via


ApplicationOperationsExtensions.CreateAsync Method

Definition

Adds an application to the specified Batch account.

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

Parameters

operations
IApplicationOperations

The operations group for this extension method.

resourceGroupName
String

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

accountName
String

The name of the Batch account.

applicationName
String

The name of the application. This must be unique within the account.

parameters
Application

The parameters for the request.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to