Hi Li, Jindong,
There is no built-in tool to just "pause" or "stop" synchronization from the portal or single command, as geo-replication is designed for high availability.
In SQL MI, failover groups replicate all user databases between the primary and secondary instances. You cannot remove individual databases from the failover group. it’s an all-or-nothing setup.
To delete the secondary instance from the failover group, you need to delete the failover group in Azure SQL Managed Instance. The secondary MI becomes a standalone copy of the primary as of the time replication was broken. You can later re-establish the failover group if needed.
- To Removes an Azure SQL Database managed instance Failover Group, follow below command:
Remove-AzSqlDatabaseFailoverGroup -ResourceGroupName "ResourceGroup" -ServerName "PrimaryServer" -FailoverGroupName "FailoverGroup"
- To Add Secondary Node Back to the Failover Group use below command:
Add-AzSqlDatabaseFailoverGroup -ResourceGroupName "ResourceGroup" -ServerName "PrimaryServer" -PartnerServerName "SecondaryServer" -FailoverGroupName "FailoverGroup"