/// <summary>
        /// Creates a new server in the current subscription.
        /// </summary>
        /// <param name="proxy">
        /// Channel used for communication with Azure's service management APIs.
        /// </param>
        /// <param name="subscriptionId">
        /// The subscription id in which to create the new server.
        /// </param>
        /// <param name="adminLogin">
        /// The administrator login name for the new server.
        /// </param>
        /// <param name="adminLoginPassword">
        /// The administrator login password for the new server.
        /// </param>
        /// <param name="location">
        /// The location in which to create the new server.
        /// </param>
        /// <returns>The XmlElement with the new server information.</returns>
        public static XmlElement NewServer(this ISqlDatabaseManagement proxy, string subscriptionId, string administratorLogin, string administratorLoginPassword, string location)
        {
            var input = new NewSqlDatabaseServerInput()
            {
                AdministratorLogin = administratorLogin,
                AdministratorLoginPassword = administratorLoginPassword,
                Location = location
            };

            var inputproxy = proxy.BeginNewServer(subscriptionId, input, null, null);
            var result = proxy.EndNewServer(inputproxy);
            return result;
        }
        /// <summary>
        /// Creates a new server in the current subscription.
        /// </summary>
        /// <param name="proxy">
        /// Channel used for communication with Azure's service management APIs.
        /// </param>
        /// <param name="subscriptionId">
        /// The subscription id in which to create the new server.
        /// </param>
        /// <param name="adminLogin">
        /// The administrator login name for the new server.
        /// </param>
        /// <param name="adminLoginPassword">
        /// The administrator login password for the new server.
        /// </param>
        /// <param name="location">
        /// The location in which to create the new server.
        /// </param>
        /// <returns>The XmlElement with the new server information.</returns>
        public static XmlElement NewServer(this ISqlDatabaseManagement proxy, string subscriptionId, string administratorLogin, string administratorLoginPassword, string location)
        {
            var input = new NewSqlDatabaseServerInput()
            {
                AdministratorLogin         = administratorLogin,
                AdministratorLoginPassword = administratorLoginPassword,
                Location = location
            };

            var inputproxy = proxy.BeginNewServer(subscriptionId, input, null, null);
            var result     = proxy.EndNewServer(inputproxy);

            return(result);
        }
 public IAsyncResult BeginNewServer(string subscriptionId, NewSqlDatabaseServerInput input, AsyncCallback callback, object state)
 {
     SimpleServiceManagementAsyncResult result = new SimpleServiceManagementAsyncResult();
     result.Values["subscriptionId"] = subscriptionId;
     result.Values["input"] = input;
     result.Values["callback"] = callback;
     result.Values["state"] = state;
     return result;
 }