Share via

SQL Managed Instance - Failover

Mark Gordon 926 Reputation points
2024-01-12T18:16:32.8233333+00:00

Fellow Azure DBA's, If you are using a SQL managed Instance (General Purpose) and you have not configured a failover group, what happens to the instance if there is an instance problem and it fails. Does Microsoft just rebuild a vm behind the scenes and reattach the objects? thx MG

Azure SQL Database
0 comments No comments

Answer accepted by question author

Sedat SALMAN 14,455 Reputation points MVP
2024-01-12T21:36:06.3866667+00:00

the following documentation can fully answer your question https://learn.microsoft.com/en-us/azure/azure-sql/managed-instance/failover-group-sql-mi?view=azuresql

but as a summary

When an Azure SQL Managed Instance in the General Purpose tier encounters a failure without a configured failover group, Azure's inherent high availability features come into play, but with certain limitations. In such scenarios, Azure orchestrates the recovery process, which may involve automatically rebuilding and configuring a new underlying virtual machine and reattaching the databases. This process is designed to ensure continuity, but it lacks the transparency and control offered by a failover group. As a result, there might be a short period of unavailability or performance impact during the recovery.

For enhanced resilience and predictable failover management, setting up a failover group is advisable. Failover groups in Azure SQL Managed Instances allow for a more sophisticated, controlled failover process, especially suitable for geo-redundant setups. They enable the automatic redirection of database connections through predefined DNS CNAME records, facilitating seamless primary-secondary transitions. This setup not only minimizes downtime but also offers better control over failover events, ensuring a more robust and reliable database availability strategy, especially critical for applications demanding high availability and minimal disruption.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.