How to sync in Azure SQL DB from Azure China to Azure US?

Lingfu Zhang 20 Reputation points
2023-03-13T19:15:48.42+00:00

We have two subscriptions, one in Azure China and the other in Azure US, both has Azure SQL database and we are trying to sync the data from Azure SQL database from Azure China to SQL database in Azure US. I know Azure data sync can sync data from on-prem SQL server to Azure SQL server as well as between the SQL databases within the same subscription. I'm wondering if there is an option to achieve data sync from Azure China to Azure US? And whether Azure data sync could be used in this scenario?

Azure SQL Database
0 comments No comments
{count} votes

Accepted answer
  1. Alberto Morillo 34,676 Reputation points MVP Volunteer Moderator
    2023-03-13T19:41:19.3366667+00:00

    Let me recommend you Azure SQL Data Sync. One of the use cases for this free tool (SQL Data Sync) is to replicate between databases on different subscriptions.

    If the other subscription also belongs to the same tenant, you can directly add it by selecting a different subscription when adding Azure database:

    193281-image.png

    Otherwise, probably it is better to use the PowerShell cmdlet New-AzureRmSqlSyncMember, you need to specify the “MemberServerName” parameter, which is the fully qualified DNS name for the logical server.

    To see the subscriptions in portal, they must under the same tenant and the user needs to have permission to both of them. If that’s not the case, they can add the sync member using PowerShell.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.