An Azure relational database service.
Hi Ali Akhlaghi,
Thank you for reaching out to Microsoft QA!
To migrate your production Azure SQL Database to an Azure Landing Zone (ALZ) with private endpoints, Azure AD-only authentication, and no public access, while minimizing downtime and keeping the source database operational, follow a clear, well-planned approach:
- Migration Strategy for Data Synchronization:
- Use Transactional Replication to continuously synchronize changes from your source Azure SQL Database to the new ALZ-based instance.
- This method supports ongoing data sync while the source remains fully operational and fits the security model with private endpoints and Azure AD authentication.
- It ensures minimal downtime and enables near real-time replication of data and schema changes.
- Migration Tools and Methods:
- Since Azure Database Migration Service is blocked, leverage Transactional Replication as your core tool for continuous data sync.
- Use Azure Data Factory for initial bulk data load if needed, but rely on replication for continuous sync rather than batch processing.
- Validate connectivity via private endpoints and confirm Azure AD authentication on the target before migration begins.
- Application Migration Strategy:
Adopt a blue/green deployment:
- Deploy the new database in the ALZ alongside the current production environment.
- Continuously replicate data changes until the ALZ target is fully synchronized and tested.
- The switch to the new database is done by updating the application’s connection string once synchronization is complete.
- This approach enables seamless roll-back if issues arise and minimizes application downtime during cutover.
- Timing for Connection String Switch:
Switch the application connection string to point to the new ALZ database only after:
- Data synchronization is fully caught up.
- The new database is verified as fully operational.
- Transactional replication has drained outstanding changes from the source.
- This moment minimizes downtime to just the cutover switch over, which can be done instantly.
- Azure Landing Zone Specific Considerations:
- Enforce private endpoint configurations and disable public network access on the ALZ database.
- Use Azure AD authentication exclusively, which may require revising application identity and authentication flows.
- Review ALZ network security policies and compliance controls to prevent connection or policy violations during migration.
- Ensure appropriate role assignments and access policies are applied in ALZ for security governance.
To provide even more tailored help, here are a few questions:
- What is the size of your source database?
- How critical is zero downtime for your application during the migration?
- Are there any specific aspects of your application architecture that might complicate the migration?
- Would you prefer more in-depth guides on any specific tools or methods?
References:
- Migrating to Azure SQL Database
- Transactional Replication
- Azure Data Factory
- Azure SQL Database Security
Hope this helps! Let me know if you have further questions or need clarification on any of the points.