/// <summary>
 /// The Create Media Services Account operation creates a new media
 /// services account in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn194267.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to the Create Media Services Account operation.
 /// </param>
 /// <returns>
 /// The Create Media Services Account operation response.
 /// </returns>
 public static MediaServicesAccountCreateResponse Create(this IAccountOperations operations, MediaServicesAccountCreateParameters parameters)
 {
     try
     {
         return(operations.CreateAsync(parameters).Result);
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// The Create Media Services Account operation creates a new media
 /// services account in Windows Azure.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/dn194267.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.MediaServices.IAccountOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Parameters supplied to the Create Media Services Account
 /// operation.
 /// </param>
 /// <returns>
 /// The Create Media Services Account operation response.
 /// </returns>
 public static Task <MediaServicesAccountCreateResponse> CreateAsync(this IAccountOperations operations, MediaServicesAccountCreateParameters parameters)
 {
     return(operations.CreateAsync(parameters, CancellationToken.None));
 }
 /// <summary>
 /// The Create operation creates a new Batch account in the specified
 /// resource group and datacenter location.
 /// </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> CreateAsync(this IAccountOperations operations, string resourceGroupName, string accountName, BatchAccountCreateParameters parameters)
 {
     return(operations.CreateAsync(resourceGroupName, accountName, parameters, CancellationToken.None));
 }