> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Design for Azure SQL Backup and Recovery

> Guide to Azure SQL backup and recovery covering backup types, retention, restore scenarios including PITR LTR and geo-restore, and how to configure policies and restores in the Azure portal

Database backups are essential: your application state and business data live in the database. This guide focuses on Azure SQL Database and Azure SQL Managed Instance (PaaS). If you run SQL Server on an Azure VM (IaaS), use the Recovery Services vault for backups—open the vault and choose "SQL on Azure VM" to configure those backups. The design and operational principles below apply primarily to Azure SQL PaaS offerings.

<Callout icon="lightbulb" color="#1CB2FE">
  Azure SQL backup types, retention windows, and configurable limits vary by service tier and deployment option. Always verify exact limits for your tier in the official Azure docs: [https://learn.microsoft.com/azure/azure-sql/database/automatic-backups-overview](https://learn.microsoft.com/azure/azure-sql/database/automatic-backups-overview). The concepts here (full, differential, and transaction log backups; PITR; LTR; geo-restore) are broadly applicable.
</Callout>

Backup types and frequency

Azure SQL automatically performs three backup types to support point-in-time recovery (PITR) and other restore scenarios:

| Backup type            |  Typical frequency | Purpose                                                                                     |
| ---------------------- | -----------------: | ------------------------------------------------------------------------------------------- |
| Full backup            |   Weekly (typical) | Contains data files plus log records needed to make the backup consistent.                  |
| Differential backup    |  Every 12–24 hours | Captures page-level data changes since the last full backup (smaller and faster than full). |
| Transaction log backup | Every 5–10 minutes | Captures transaction log records to enable PITR within the configured retention window.     |

These backups work together so you can restore a database to a full backup, a more recent differential, or to any point in time within the PITR window by replaying transaction log backups.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/EvGInugvhj57xLLI/images/AZ-305-Microsoft-Azure-Solutions-Architect-Expert/Design-a-business-continuity-solution/Design-for-Azure-SQL-Backup-and-Recovery/azure-sql-backup-recovery-infographic.jpg?fit=max&auto=format&n=EvGInugvhj57xLLI&q=85&s=3d2d1fdb0716832829dc1fe643e0c02a" alt="An infographic titled &#x22;Azure SQL backup and recovery&#x22; that explains full (weekly), differential (12–24h) and transaction log (5–10m) backups using circular icons, airplane banner callouts, and diagrams showing data/log files flowing to respective backup boxes. It visually summarizes what each backup contains and the backup frequency." width="1920" height="1080" data-path="images/AZ-305-Microsoft-Azure-Solutions-Architect-Expert/Design-a-business-continuity-solution/Design-for-Azure-SQL-Backup-and-Recovery/azure-sql-backup-recovery-infographic.jpg" />
</Frame>

What each backup contains

* Full backup: the database data files plus the transactional log records required to make the backup consistent.
* Differential backup: only data page changes (delta) since the last full backup.
* Transaction log backup: transaction log records only; used to replay transactions and perform PITR within retention.

Backup use cases

Use cases for Azure SQL backups include routine recovery, deleted-database recovery, cross-region disaster recovery, and long-term archival. The table below summarizes common restore scenarios and when to use them.

| Restore scenario                  | When to use it                                  | Notes                                                                                                                                                                                                                                                                                              |
| --------------------------------- | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Point-in-time restore (PITR)      | Recover recent data or undo recent changes      | Restores to any point within the configured PITR retention; creates a new database with a new name on the same server/instance. See: [https://learn.microsoft.com/azure/azure-sql/database/point-in-time-restore](https://learn.microsoft.com/azure/azure-sql/database/point-in-time-restore)      |
| Restore deleted database          | Recover a dropped database                      | You can restore to any point within retention, including the time of deletion. Must restore to the same server or managed instance.                                                                                                                                                                |
| Geo-restore                       | Primary region unavailable or disaster recovery | Uses geo-replicated backups to create a new database on any existing server/instance in another Azure region. See: [https://learn.microsoft.com/azure/azure-sql/database/geo-restore-overview](https://learn.microsoft.com/azure/azure-sql/database/geo-restore-overview)                          |
| Long-term retention (LTR) restore | Regulatory or archival requirements             | Use LTR snapshots retained for weeks, months, or years (up to 10 years) to restore older snapshots beyond PITR limits. See: [https://learn.microsoft.com/azure/azure-sql/database/long-term-retention-overview](https://learn.microsoft.com/azure/azure-sql/database/long-term-retention-overview) |

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/EvGInugvhj57xLLI/images/AZ-305-Microsoft-Azure-Solutions-Architect-Expert/Design-a-business-continuity-solution/Design-for-Azure-SQL-Backup-and-Recovery/azure-sql-backup-use-cases.jpg?fit=max&auto=format&n=EvGInugvhj57xLLI&q=85&s=aabb7886b751981cde0c91fa86f3acd4" alt="A slide titled &#x22;Azure SQL backup – Use cases.&#x22; It lists four numbered restore scenarios: point-in-time restore, restore a deleted database, restore to another Azure region, and restore from a long-term backup." width="1920" height="1080" data-path="images/AZ-305-Microsoft-Azure-Solutions-Architect-Expert/Design-a-business-continuity-solution/Design-for-Azure-SQL-Backup-and-Recovery/azure-sql-backup-use-cases.jpg" />
</Frame>

Configuring backups in the Azure portal

To review backup settings and available restore points:

1. Open the Azure portal and navigate to SQL databases.
2. Select the database to inspect (for example, a migrated database).
3. From the database page, click the server name to open the server overview.
4. On the server overview, choose Backups.

The Backups page lists available restore points (including the earliest PITR restore point), deleted backups that can be recovered, and any available LTR snapshots. Use the Restore action to create a new database from a selected restore point.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/EvGInugvhj57xLLI/images/AZ-305-Microsoft-Azure-Solutions-Architect-Expert/Design-a-business-continuity-solution/Design-for-Azure-SQL-Backup-and-Recovery/azure-sql-backups-customers-restore-pitr.jpg?fit=max&auto=format&n=EvGInugvhj57xLLI&q=85&s=ca71ab9aaabc02934c4255383f3b3d30" alt="Screenshot of the Microsoft Azure portal on the &#x22;Backups&#x22; page for a SQL server, showing a &#x22;customers&#x22; database with its earliest PITR restore point and a &#x22;Restore&#x22; action. The left sidebar displays navigation items like Overview, Activity log, SQL databases, and Backups." width="1920" height="1080" data-path="images/AZ-305-Microsoft-Azure-Solutions-Architect-Expert/Design-a-business-continuity-solution/Design-for-Azure-SQL-Backup-and-Recovery/azure-sql-backups-customers-restore-pitr.jpg" />
</Frame>

Retention and policy configuration

From the Backups page, click Configure policies to manage retention and schedule settings:

* Point-in-time restore (PITR) retention — set how many days of PITR you require (max varies by service tier; many tiers allow up to 35 days).
* Differential backup frequency — tune differential backup frequency (for example, 24 hours) to balance recovery granularity and storage.
* Long-term retention (LTR) — configure weekly, monthly, and yearly LTR snapshots and their retention durations (LTR supports retention up to 10 years).

If you remove an LTR policy, existing LTR snapshots retained beyond the policy must be handled according to your retention rules.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/EvGInugvhj57xLLI/images/AZ-305-Microsoft-Azure-Solutions-Architect-Expert/Design-a-business-continuity-solution/Design-for-Azure-SQL-Backup-and-Recovery/azure-sql-backups-pitr7d-diff24h.jpg?fit=max&auto=format&n=EvGInugvhj57xLLI&q=85&s=d6d7fb22ad9ebe0e6921e7b0b07bfab0" alt="A screenshot of the Microsoft Azure portal showing the Backups page for the SQL server &#x22;ompremtoazure&#x22; with a &#x22;customers&#x22; database and retention policies listed (PITR 7 days, differential 24 hours). The &#x22;Configure policies&#x22; pane is open on the right with settings for point-in-time restore, differential backup frequency, and long-term retention." width="1920" height="1080" data-path="images/AZ-305-Microsoft-Azure-Solutions-Architect-Expert/Design-a-business-continuity-solution/Design-for-Azure-SQL-Backup-and-Recovery/azure-sql-backups-pitr7d-diff24h.jpg" />
</Frame>

<Callout icon="warning" color="#FF6B6B">
  When restoring a deleted database, you must restore to the same server or managed instance from which it was deleted. For cross-region recovery when the primary region is inaccessible, use geo-restore instead (this creates a database on a different server/region using geo-replicated backups).
</Callout>

Summary and recommendations

* Azure SQL uses full, differential, and transaction log backups in combination to enable PITR and other restore scenarios.
* Configure PITR retention and differential frequency on the server’s Backups page; enable LTR for long-term archival (up to 10 years).
* For SQL Server on Azure VMs, use the Recovery Services vault and select "SQL on Azure VM" to configure backups: [https://learn.microsoft.com/azure/backup/backup-introduction-to-azure-backup](https://learn.microsoft.com/azure/backup/backup-introduction-to-azure-backup).
* Deleted-database restores must target the original server/managed instance; geo-restore is available for region-level failures.

Further reading and references

* Azure SQL automatic backups overview: [https://learn.microsoft.com/azure/azure-sql/database/automatic-backups-overview](https://learn.microsoft.com/azure/azure-sql/database/automatic-backups-overview)
* Point-in-time restore (PITR): [https://learn.microsoft.com/azure/azure-sql/database/point-in-time-restore](https://learn.microsoft.com/azure/azure-sql/database/point-in-time-restore)
* Geo-restore overview: [https://learn.microsoft.com/azure/azure-sql/database/geo-restore-overview](https://learn.microsoft.com/azure/azure-sql/database/geo-restore-overview)
* Long-term retention (LTR): [https://learn.microsoft.com/azure/azure-sql/database/long-term-retention-overview](https://learn.microsoft.com/azure/azure-sql/database/long-term-retention-overview)
* Azure Backup (Recovery Services vault): [https://learn.microsoft.com/azure/backup/backup-introduction-to-azure-backup](https://learn.microsoft.com/azure/backup/backup-introduction-to-azure-backup)

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/az-305-microsoft-azure-solutions-architect-expert/module/d9cff719-f4ed-4b69-a9a5-5994a66e8e15/lesson/04714181-2372-4e9c-ad4d-0bfd8636ab4c" />
</CardGroup>
