Azure SQL Database: High Availability and Disaster Recovery Samples

Explore practical code samples for implementing robust HA/DR strategies with Azure SQL Database.

Introduction

This repository provides a collection of code samples and best practices to help you implement effective High Availability (HA) and Disaster Recovery (DR) solutions for your Azure SQL Database. Ensuring your data is accessible and protected against various failure scenarios is critical for business continuity.

We cover various aspects of HA/DR, including:

Key Concepts & Features

High Availability (HA)

Azure SQL Database is designed with built-in high availability. It utilizes technologies like database mirroring and Always On Availability Groups to ensure that your database is always accessible, even in the event of hardware failures or datacenter outages. For a single database, Azure SQL Database provides at least 99.99% availability.

Disaster Recovery (DR)

Disaster Recovery focuses on protecting your data from larger-scale outages, such as regional disasters. Azure SQL Database offers several DR capabilities:

Sample Scenarios & Code

Below are links to specific code samples and walkthroughs:

1. Setting up Active Geo-Replication

Learn how to configure and manage active geo-replication for your Azure SQL Database.

2. Implementing Auto-Failover Groups

Discover how to use auto-failover groups to simplify application failover.

3. Backup and Restore Strategies

Explore how to leverage Azure SQL Database's backup capabilities.

4. Application Resilience

Learn how to design your applications to be resilient to database failovers.

Getting Started

To get started, fork this repository and begin exploring the samples. We recommend familiarizing yourself with the core concepts of Azure SQL Database HA/DR before diving into the code.

For detailed documentation, please refer to the official Azure SQL Database Business Continuity documentation.