Implementing active geo-replication for an Azure SQL database using PowerShell
The active geo-replication feature allows you to create up to four readable databases for a primary Azure SQL Database. Active geo-replication uses SQL Server AlwaysOn to asynchronously replicate transactions to the secondary databases. The secondary database can be in the same or a different region from the primary database.
Active geo-replication can be used for the following cases:
- To provide business continuity by failing over to the secondary database in case of a disaster. The failover is manual.
- To offload reads to the readable secondary database.
- To migrate a database to a different server in another region.
In this recipe, we’ll configure active geo-replication for an Azure SQL database and perform a manual failover.
Getting ready
In a new PowerShell window, execute the Connect-AzAccount
command and follow the steps to log in to your Azure account.
You need...