liveBook · Manning

Auto-failover group

As explained in Microsoft Azure in Action

A failover group is an Azure SQL configuration that coordinates failover for one or more databases across primary and secondary regions.

An auto-failover group is an Azure SQL Database configuration built on geo-replication. It coordinates failover for one or more databases between primary and secondary regions, helping applications stay available when a region has trouble. section 10.5.2 section 10.7

Key capabilities include:

  • Automatic or manual failover, selected through the failover policy. section 10.5.2
  • Read-write and read-only listener endpoints that redirect traffic to the appropriate databases. section 10.5.2
  • Graceful planned failover that synchronizes data before switching regional roles, minimizing data loss. section 10.5.2

Banning Books keeps ordering online

Banning Books can replicate BanningBooksDB to BanningBooksSecondaryServer, then create a failover group with an automatic policy. If the primary region fails, Azure SQL Database can move service to the synchronized secondary with less manual intervention. section 10.5.1 section 10.5.2

C:/> az sql failover-group create --name banningbooksfailovergroup 
--resource-group BanningRG --server BanningBooksServer 
--partner-server BanningBooksSecondaryServer --failover-policy Automatic 
--add-db BanningBooksDB

The Azure CLI example creates a failover group by naming the primary server, secondary partner, automatic policy, and database. section 10.5.2

How Microsoft Azure in Action covers it

How deep it goes
Explains automated coordination, listeners, graceful failover, policies, and CLI creation, but not detailed operational limits.
Examples
Uses Banning Books, two regional SQL servers, BanningBooksDB, listener endpoints, and an Azure CLI creation command.
What it assumes
Builds on geo-replication and requires a secondary Azure SQL Database server for the replicated databases.
What you can do after
Configure an Azure SQL failover group with Azure CLI and choose an automatic or manual failover policy.
How it connects
Connects geo-replication with high availability, disaster recovery, database listeners, and regional failover.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microsoft Azure in Action. The section links point to the parts of the book it draws on.