Auto-failover groups for Azure SQL Hyperscale now in preview

Published Jan 05 2022 09:00 AM 6,645 Views
Microsoft

We are excited to announce the preview release of auto-failover groups for Azure SQL Hyperscale tier. This preview release includes support for forced and planned failover for Azure SQL Hyperscale databases that use active geo-replication and auto-failover groups. Some key benefits of auto-failover groups include:

  • Simplified management of a group of geo-replicated databases including ability to failover the entire group of databases.
  • Ability for application to maintain the same read/write and read-only endpoints after failover.
  • Recovery during loss of an entire region through geo-failover which can be initiated manually or through an automatic failover policy.
  • Readable online secondaries that can be used for read-only workloads by connecting with read-only listener endpoints which remain unchanged during geo-failovers.

 

Hyperscale service tier supports 100 TB of database size, rapid scale (out and up) and nearly instantaneous database backups, removing the limits traditionally seen in cloud databases.

 

How auto-failover groups work for Hyperscale

 

Auto-failover groups are created between servers in 2 regions. The groups can include all or some databases in the servers. If a Hyperscale database is selected to be part of the failover group, then this database will failover with the rest of the failover group unit. The following diagram illustrates a typical configuration of a geo-redundant cloud application using multiple databases and auto-failover group.

 

Emily_Lisa_0-1641335649690.png

 

 

 

Available regions

 

Auto-failover groups for Hyperscale will be supported in all regions where Azure SQL Hyperscale is supported.

 

Quick start

 

a. Create an Auto-failover group using Portal.

  1. Failover groups can be configured at the server level. Select the name of the server under Server name to open the settings for the server.

Emily_Lisa_1-1641344463476.png

 

 

  1. Select Failover groups under the Settings pane, and then select Add group to create a new failover group.

Emily_Lisa_2-1641335649698.png

 

  1. On the Failover Group page, enter or select your desired values for your failover group.

Emily_Lisa_0-1641344923904.png

 

 

 

  1. Add your Hyperscale database to the failover group then select Create.

 

Emily_Lisa_4-1641335649703.png

b. Create an Auto-failover group using PowerShell.

c. Create an Auto-failover group using CLI.

d. Create an Auto-failover group using REST API.

 

Geo-failover examples

 

Example 1: Planned failover for an auto-failover group

 

a. Execute a failover of an auto-failover group in Portal.

1. Select your failover group.

Emily_Lisa_2-1641343932290.png

 

2. Select Failover to initiate failover for your auto-failover group. Once failover is completed you should see that your primary and secondary servers have swapped roles.

Emily_Lisa_1-1641343629363.png

 

 

b. Execute a failover of an auto-failover group using Switch-AzSqlDatabaseFailoverGroup in PowerShell.

c. Execute a failover of an auto-failover group using az sql failover-group set-primary in CLI.

d. Execute a failover of an auto-failover group using REST API.

 

Example 2: Forced failover with active geo-replication

 

a. Execute a failover using Portal.

1. Select the Replicas tab. In the list of geo replicas click the ellipsis for the secondary you would like to become the new primary. Then select Forced failover.

Emily_Lisa_0-1641343115551.png

 

2. You should now see that the primary and secondary have swapped roles.

 

b. Execute a failover using Set-AzSqlDatabaseSecondary in PowerShell with the -AllowDataLoss parameter specified.

c. Execute a failover using az sql db replica set-primary in CLI with the –allow-data-loss parameter specified.

d. Execute a failover using REST API.

 

Learn more

 

https://docs.microsoft.com/azure/azure-sql/database/auto-failover-group-overview

https://aka.ms/activegeoreplication

https://docs.microsoft.com/en-us/azure/azure-sql/database/service-tier-hyperscale

 

 

 

 

 

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-3052119%22%20slang%3D%22en-US%22%3EAuto-failover%20groups%20for%20Azure%20SQL%20Hyperscale%20now%20in%20preview%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3052119%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20excited%20to%20announce%20the%20preview%20release%20of%20auto-failover%20groups%20for%20Azure%20SQL%20Hyperscale%20tier.%20This%20preview%20release%20includes%20support%20for%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-sql%2Fdatabase%2Fauto-failover-group-overview%3Ftabs%3Drest-api%23terminology-and-capabilities%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eforced%20and%20planned%20failover%3C%2FA%3E%3C%2FSPAN%3E%20for%20Azure%20SQL%20Hyperscale%20databases%20that%20use%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-sql%2Fdatabase%2Factive-geo-replication-overview%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Eactive%20geo-replication%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-sql%2Fdatabase%2Factive-geo-replication-overview%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Eauto-failover%20groups%3C%2FA%3E.%20Some%20key%20benefits%20of%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-sql%2Fdatabase%2Fauto-failover-group-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eauto-failover%20groups%3C%2FA%3E%3C%2FSPAN%3E%20include%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESimplified%20management%20of%3CSPAN%3E%20a%20group%20of%20%3C%2FSPAN%3Egeo-replicated%20databases%3CSPAN%3E%20including%20ability%20to%20failover%20the%20entire%20group%20of%3C%2FSPAN%3E%3CSPAN%3E%20databases.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EAbility%20for%20applicatio%3C%2FSPAN%3E%3CSPAN%3En%20to%20m%3C%2FSPAN%3E%3CSPAN%3Eaintain%20the%20same%20read%2Fwrite%20and%20read-only%20endpoints%20%3C%2FSPAN%3E%3CSPAN%3Eafter%20failover.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3ERecovery%20during%20loss%20of%20an%20entire%20region%20through%20geo-failover%20which%20can%20be%20initiated%20manually%20or%20through%20an%20automatic%20failover%20policy%3CSPAN%3E.%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EReadable%20online%20secondaries%20that%20can%20be%20used%20for%20read-only%20workloads%20by%20connecting%20with%20read-only%20listener%20endpoints%20which%20remain%20unchanged%20during%20geo-failovers.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fservice-tier-hyperscale%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EHyperscale%3C%2FA%3E%26nbsp%3Bservice%20tier%20supports%20100%20TB%20of%20database%20size%2C%20rapid%20scale%20(out%20and%20up)%20and%20nearly%20instantaneous%20database%20backups%2C%20removing%20the%20limits%26nbsp%3Btraditionally%20seen%20in%20cloud%20databases.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-334590015%22%20id%3D%22toc-hId-338433050%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--1472864448%22%20id%3D%22toc-hId--1469021413%22%3EHow%20auto-failover%20groups%20work%20for%20Hyperscale%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAuto-failover%20groups%20are%20c%3CSPAN%3Ereated%20between%20servers%20in%202%20regions%3C%2FSPAN%3E.%20The%20groups%20can%20include%20all%20or%20some%20databases%20in%20the%20servers.%20If%20a%20Hyperscale%20database%20is%20selected%20to%20be%20part%20of%20the%20failover%20group%2C%20then%20this%20database%20will%20failover%20with%20the%20rest%20of%20the%20failover%20group%20unit.%20The%20following%20diagram%20illustrates%20a%20typical%20configuration%20of%20a%20geo-redundant%20cloud%20application%20using%20multiple%20databases%20and%20auto-failover%20group.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Emily_Lisa_0-1641335649690.png%22%20style%3D%22width%3A%20592px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337468iD49930D8EE7D837E%2Fimage-dimensions%2F592x359%3Fv%3Dv2%22%20width%3D%22592%22%20height%3D%22359%22%20role%3D%22button%22%20title%3D%22Emily_Lisa_0-1641335649690.png%22%20alt%3D%22Emily_Lisa_0-1641335649690.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1014648385%22%20id%3D%22toc-hId-1018491420%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--792806078%22%20id%3D%22toc-hId--788963043%22%3EAvailable%20regions%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAuto-failover%20groups%20for%20Hyperscale%20will%20be%20supported%20in%20all%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fservice-tier-hyperscale%23available-regions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eregions%3C%2FA%3E%26nbsp%3Bwhere%20Azure%20SQL%20Hyperscale%20is%20supported.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1694706755%22%20id%3D%22toc-hId-1698549790%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--112747708%22%20id%3D%22toc-hId--108904673%22%3EQuick%20start%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ea.%20Create%20an%20Auto-failover%20group%20using%20Portal.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EFailover%20groups%20can%20be%20configured%20at%20the%20server%20level.%20Select%20the%20name%20of%20the%20server%20under%20%3CSTRONG%3EServer%20name%3C%2FSTRONG%3E%20to%20open%20the%20settings%20for%20the%20server.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Emily_Lisa_1-1641344463476.png%22%20style%3D%22width%3A%20606px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337491i0DD8BC98205F8508%2Fimage-dimensions%2F606x78%3Fv%3Dv2%22%20width%3D%22606%22%20height%3D%2278%22%20role%3D%22button%22%20title%3D%22Emily_Lisa_1-1641344463476.png%22%20alt%3D%22Emily_Lisa_1-1641344463476.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3ESelect%20%3CSTRONG%3EFailover%20groups%3C%2FSTRONG%3E%20under%20the%20%3CSTRONG%3ESettings%3C%2FSTRONG%3E%20pane%2C%20and%20then%20select%20%3CSTRONG%3EAdd%20group%3C%2FSTRONG%3E%20to%20create%20a%20new%20failover%20group.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Emily_Lisa_2-1641335649698.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337467i4325C531853BA2C3%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Emily_Lisa_2-1641335649698.png%22%20alt%3D%22Emily_Lisa_2-1641335649698.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3EOn%20the%20%3CSTRONG%3EFailover%20Group%3C%2FSTRONG%3E%20page%2C%20enter%20or%20select%20your%20desired%20values%20for%20your%20failover%20group.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Emily_Lisa_0-1641344923904.png%22%20style%3D%22width%3A%20239px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337493i686CE09A86636EB6%2Fimage-dimensions%2F239x505%3Fv%3Dv2%22%20width%3D%22239%22%20height%3D%22505%22%20role%3D%22button%22%20title%3D%22Emily_Lisa_0-1641344923904.png%22%20alt%3D%22Emily_Lisa_0-1641344923904.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3EAdd%20your%20Hyperscale%20database%20to%20the%20failover%20group%20then%20select%20%3CSTRONG%3ECreate%3C%2FSTRONG%3E.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Emily_Lisa_4-1641335649703.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337471i3B895E71BFCC145D%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Emily_Lisa_4-1641335649703.png%22%20alt%3D%22Emily_Lisa_4-1641335649703.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Eb.%20Create%20an%20Auto-failover%20group%20using%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fpowershell%2Fmodule%2Faz.sql%2Fnew-azsqldatabasefailovergroup%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EPowerShell.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3Ec.%20Create%20an%20Auto-failover%20group%20using%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fcli%2Fazure%2Fsql%2Ffailover-group%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECLI.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3Ed.%20Create%20an%20Auto-failover%20group%20using%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Frest%2Fapi%2Fsql%2F2021-02-01-preview%2Finstance-failover-groups%2Fcreate-or-update%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EREST%20API.%3C%2FA%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1920202171%22%20id%3D%22toc-hId--1916359136%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-567310662%22%20id%3D%22toc-hId-571153697%22%3E%3CSPAN%3EGeo-f%3C%2FSPAN%3E%3CSPAN%3Eailover%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3Bexam%3C%2FSPAN%3E%3CSPAN%3Eples%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--1240143801%22%20id%3D%22toc-hId--1236300766%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-1247369032%22%20id%3D%22toc-hId-1251212067%22%3E%3CFONT%20size%3D%223%22%3EExample%201%3A%20Planned%20failover%20for%20an%20auto-failover%20group%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Ea.%26nbsp%3BExecute%20a%20failover%20of%20an%20auto-failover%20group%20in%20Portal.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CSPAN%3E1.%20Select%20your%20%3C%2FSPAN%3E%3CSPAN%3Efailover%20group.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Emily_Lisa_2-1641343932290.png%22%20style%3D%22width%3A%20506px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337488i8EBD7F671F0FD3C9%2Fimage-dimensions%2F506x257%3Fv%3Dv2%22%20width%3D%22506%22%20height%3D%22257%22%20role%3D%22button%22%20title%3D%22Emily_Lisa_2-1641343932290.png%22%20alt%3D%22Emily_Lisa_2-1641343932290.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E2.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3ESelect%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-weight%3A%20normal%20!msorm%3B%22%3E%3CSTRONG%3EF%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-weight%3A%20normal%20!msorm%3B%22%3E%3CSTRONG%3Eailover%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Eto%20initiate%20failover%20for%20your%20auto-failover%20group.%20Once%20failover%20is%20completed%20you%20should%20see%20that%20your%20primary%20and%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3Bsecondary%20servers%20have%20swapped%20roles.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2060px%3B%20%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Emily_Lisa_1-1641343629363.png%22%20style%3D%22width%3A%20507px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337487i20726A7478002E47%2Fimage-dimensions%2F507x378%3Fv%3Dv2%22%20width%3D%22507%22%20height%3D%22378%22%20role%3D%22button%22%20title%3D%22Emily_Lisa_1-1641343629363.png%22%20alt%3D%22Emily_Lisa_1-1641343629363.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Eb.%20Execute%20a%20failover%20of%20an%20auto-failover%20group%20using%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fpowershell%2Fmodule%2Faz.sql%2Fswitch-azsqldatabasefailovergroup%3Fview%3Dazps-7.0.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESwitch-AzSqlDatabaseFailoverGroup%3C%2FA%3E%20%3C%2FSPAN%3E%3CSPAN%3Ein%20%3C%2FSPAN%3E%3CSPAN%3EPowerShell.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Ec.%20Execute%20a%20failover%20of%20an%20auto-failover%20group%20using%3C%2FSPAN%3E%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fcli%2Fazure%2Fsql%2Ffailover-group%3Fview%3Dazure-cli-latest%23az_sql_failover_group_set_primary%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eaz%20sql%20failover-group%20set-primary%3C%2FA%3E%3C%2FSPAN%3E%20%3CSPAN%3Ein%20CLI.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Ed.%20Execute%20a%20failover%20of%20an%20auto-failover%20group%20using%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Frest%2Fapi%2Fsql%2F2021-02-01-preview%2Ffailover-groups%2Ffailover%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EREST%20API.%3C%2FA%3E%20%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1113684308%22%20id%3D%22toc-hId-1117527343%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--693770155%22%20id%3D%22toc-hId--689927120%22%3E%3CFONT%20size%3D%223%22%3EExample%202%3A%20Forced%20failover%20with%20active%20geo-replication%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Ea.%20Execute%20a%20failover%20using%20Portal.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CSPAN%3E1.%20Select%20the%3CSPAN%20style%3D%22font-weight%3A%20normal%20!msorm%3B%22%3E%3CSTRONG%3E%20Replicas%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3E%20tab%3C%2FSPAN%3E%3CSPAN%3E.%20In%20the%20list%20of%20geo%20replicas%20click%20the%20ellipsis%20for%20the%20secondary%20you%20would%20like%20to%20become%20the%20new%20primary.%20Then%20select%20%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-weight%3A%20normal%20!msorm%3B%22%3E%3CSTRONG%3E%3CSPAN%3EForced%20failover.%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2060px%3B%20%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Emily_Lisa_0-1641343115551.png%22%20style%3D%22width%3A%20656px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F337486iDFDBB6941541C7DC%2Fimage-dimensions%2F656x233%3Fv%3Dv2%22%20width%3D%22656%22%20height%3D%22233%22%20role%3D%22button%22%20title%3D%22Emily_Lisa_0-1641343115551.png%22%20alt%3D%22Emily_Lisa_0-1641343115551.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CSPAN%3E2.%20You%20should%20now%20see%20that%20the%20primary%20and%20secondary%20have%20swapped%20roles.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Eb.%20Execute%20a%20failover%20using%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fpowershell%2Fmodule%2Faz.sql%2Fset-azsqldatabasesecondary%3Fview%3Dazps-7.0.0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ESet-AzSqlDatabaseSecondary%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%3E%20in%20Power%3C%2FSPAN%3E%3CSPAN%3EShell%3C%2FSPAN%3E%3CSPAN%3E%20with%20the%20%3CEM%3E-AllowDataLoss%20%3C%2FEM%3Eparameter%20specified.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Ec.%20Execute%20a%20failover%20using%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fcli%2Fazure%2Fsql%2Fdb%2Freplica%3Fview%3Dazure-cli-latest%23az_sql_db_replica_set_primary%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Eaz%20sql%20db%20replica%20set-primary%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%3E%20in%20CLI%3C%2FSPAN%3E%3CSPAN%3E%20with%20the%20%3CEM%3E%E2%80%93allow-data-loss%20%3C%2FEM%3Eparameter%20specified.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%3Ed.%20Execute%20a%20failover%20using%20%3C%2FSPAN%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Frest%2Fapi%2Fsql%2F2021-02-01-preview%2Freplication-links%2Fget%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EREST%20API.%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1793742678%22%20id%3D%22toc-hId-1797585713%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--13711785%22%20id%3D%22toc-hId--9868750%22%3ELearn%20more%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-sql%2Fdatabase%2Fauto-failover-group-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fazure%2Fazure-sql%2Fdatabase%2Fauto-failover-group-overview%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Factivegeoreplication%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Factivegeoreplication%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fservice-tier-hyperscale%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fservice-tier-hyperscale%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3052119%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20excited%20to%20announce%20the%20preview%20release%20of%20auto-failover%20groups%20for%20Azure%20SQL%20Hyperscale%20tier.%20This%20preview%20release%20includes%20support%20for%20forced%20and%20planned%20failover%20for%20Azure%20SQL%20Hyperscale%20databases%20that%20use%20active%20and%20auto-failover%20groups.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3052119%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20SQL%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20SQL%20Database%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Jan 04 2022 05:25 PM
Updated by: