/// <summary>
 /// Begin creating the batch account.To determine whether the operation
 /// has finished processing the request, call
 /// GetLongRunningOperationStatus.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the new
 /// Batch account.
 /// </param>
 /// <param name='accountName'>
 /// Required. A name for the Batch account which must be unique within
 /// Azure. Batch account names must be between 3 and 24 characters in
 /// length and must use only numbers and lower-case 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.batch.core.windows.net/.
 /// </param>
 /// <param name='parameters'>
 /// Required. Additional parameters for account creation
 /// </param>
 /// <returns>
 /// Values returned by the Create operation.
 /// </returns>
 public static BatchAccountCreateResponse BeginCreating(this IAccountOperations operations, string resourceGroupName, string accountName, BatchAccountCreateParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IAccountOperations)s).BeginCreatingAsync(resourceGroupName, accountName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Begin creating the batch account.To determine whether the operation
 /// has finished processing the request, call
 /// GetLongRunningOperationStatus.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IAccountOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the new
 /// Batch account.
 /// </param>
 /// <param name='accountName'>
 /// Required. A name for the Batch account which must be unique within
 /// Azure. Batch account names must be between 3 and 24 characters in
 /// length and must use only numbers and lower-case 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.batch.core.windows.net/.
 /// </param>
 /// <param name='parameters'>
 /// Required. Additional parameters for account creation
 /// </param>
 /// <returns>
 /// Values returned by the Create operation.
 /// </returns>
 public static Task<BatchAccountCreateResponse> BeginCreatingAsync(this IAccountOperations operations, string resourceGroupName, string accountName, BatchAccountCreateParameters parameters)
 {
     return operations.BeginCreatingAsync(resourceGroupName, accountName, parameters, CancellationToken.None);
 }