예제 #1
0
 /// <summary>
 /// Update an existing sync member
 /// </summary>
 public SyncMember UpdateSyncMember(string resourceGroupName, string serverName, string databaseName, SyncMemberCreateOrUpdateParameters parameters)
 {
     return(GetLegacySqlClient().DataSync.UpdateSyncMember(resourceGroupName, serverName, databaseName, parameters).SyncMember);
 }
예제 #2
0
        /// <summary>
        /// Create a new sync member
        /// </summary>
        public SyncMember CreateSyncMember(string resourceGroupName, string serverName, string databaseName, string syncAgentId, SyncMemberCreateOrUpdateParameters parameters)
        {
            SqlManagementClient client = GetLegacySqlClient();

            if (syncAgentId != null)
            {
                parameters.Properties.SyncAgentId = string.Format("/subscriptions/{0}/{1}", client.Credentials.SubscriptionId, syncAgentId);
            }
            return(client.DataSync.CreateOrUpdateSyncMember(resourceGroupName, serverName, databaseName, parameters).SyncMember);
        }