Failover priority is a numeric ordering for configured Azure Cosmos DB regions. Priority 0 is highest and normally identifies the primary region; higher values follow as takeover order. section 11.4.2 section 11.1.2
Australia first, Europe next
A Cosmos DB account can assign Australia East failoverPriority=0 and West Europe failoverPriority=1. Australia East handles normal operations, while West Europe is next if the primary region fails. section 11.1.2
When configuring regional failover, remember:
- Set each region's priority as an integer, using 0 for the highest priority. section 11.4.2
- Use multiple locations to provide regional resilience; zone redundancy separately protects replicas from zone-level failures. section 11.4.2
- Remember that zone redundancy adds storage and replication cost. section 11.1.2
C:/> az cosmosdb update --name alpacacosmosdbaccount --resource-group AlpacaRG --locations regionName=australiacentral failoverPriority=0 isZoneRedundant=False regionName=eastus failoverPriority=1 isZoneRedundant=False
Compare Azure CLI configurations with and without zone redundancy while keeping the failover order visible. section 11.4.2
