Remediation
Migrate Azure SQL Server VM to a Different Region with Azure Site Recoveryβ
Workflow Summaryβ
- Verify that the source SQL Server VM and target region meet all prerequisites for migration.
- Prepare the source VM by updating certificates, installing updates, and confirming network connectivity.
- Configure Azure Site Recovery by creating a Recovery Services vault and enabling replication for the VM.
- Perform a test failover to the target region to validate functionality and replication.
- Execute the actual migration by initiating a failover and committing the move to the target region.
- Clean up post-migration by stopping replication, removing the source VM from the vault, and deleting residual resources.
1. Verify Prerequisitesβ
Before initiating the migration, confirm the following:
- Source and Target Region Support: Ensure that moving from your source region to your target region is supported.
- Permissions: Verify that you have the necessary permissions: Virtual Machine Contributor and Site Recovery Contributor.
- SQL IaaS Agent: The SQL IaaS Agent extension must be installed on the VM.
- Network Configuration: Ensure the source VM has internet access and no authentication proxies block connectivity.
2. Prepare Source SQL Server VMβ
- Install the latest root certificates on the SQL Server VM.
- For Windows VMs: Apply all Windows updates.
- For Linux VMs: Update trusted root certificates and certificate revocation lists.
- Confirm outbound internet connectivity.
3. Configure Azure Site Recoveryβ
- Create a Recovery Services Vault in the source region.
- Enable replication with Azure-to-Azure replication settings, selecting source and target regions.
- Add the source VM to the vault and start initial replication.
4. Test Migrationβ
- Initiate the test failover to the target region.
- Validate functionality to ensure SQL Server and applications operate correctly.
- Clean up test resources to avoid unnecessary costs.
5. Execute Migrationβ
- Initiate migration by performing the failover and committing the move.
- Monitor migration progress to confirm successful completion without errors.
6. Post-Migration Cleanupβ
- Stop replication and remove the source VM from the Recovery Services vault.
- Delete residual resources in the source region that are no longer needed.
- Verify billing to ensure charges apply to the correct resources and region.
Considerationsβ
- Expect a brief downtime during failover.
- Ensure data consistency before committing the migration.
- Confirm that the target region complies with data residency and compliance requirements.