/// <summary> /// Adds an application to the specified Batch account. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group that contains the Batch account. /// </param> /// <param name='accountName'> /// The name of the Batch account. /// </param> /// <param name='applicationId'> /// The id of the application. /// </param> /// <param name='parameters'> /// The parameters for the request. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Application> AddApplicationAsync(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationId, AddApplicationParameters parameters = default(AddApplicationParameters), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.AddApplicationWithHttpMessagesAsync(resourceGroupName, accountName, applicationId, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }