/// <summary>
 /// Sets the administrative password of a SQL Database server for a
 /// subscription.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/gg715272.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IServerOperations.
 /// </param>
 /// <param name='serverName'>
 /// The server that will have the change made to the administrative
 /// user.
 /// </param>
 /// <param name='parameters'>
 /// Parameters for the Manage Administrator Password operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse ChangeAdministratorPassword(this IServerOperations operations, string serverName, ServerChangeAdministratorPasswordParameters parameters)
 {
     try
     {
         return operations.ChangeAdministratorPasswordAsync(serverName, parameters).Result;
     }
     catch (AggregateException ex)
     {
         if (ex.InnerExceptions.Count > 1)
         {
             throw;
         }
         else
         {
             throw ex.InnerException;
         }
     }
 }
 /// <summary>
 /// Sets the administrative password of a SQL Database server for a
 /// subscription.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/gg715272.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IServerOperations.
 /// </param>
 /// <param name='serverName'>
 /// The server that will have the change made to the administrative
 /// user.
 /// </param>
 /// <param name='parameters'>
 /// Parameters for the Manage Administrator Password operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task<OperationResponse> ChangeAdministratorPasswordAsync(this IServerOperations operations, string serverName, ServerChangeAdministratorPasswordParameters parameters)
 {
     return operations.ChangeAdministratorPasswordAsync(serverName, parameters, CancellationToken.None);
 }