```html Azure SQL Database – Backup and Restore

Azure SQL Database Documentation

Backup and Restore for Azure SQL Database

Azure SQL Database provides built‑in, automated backups that enable rapid recovery of your data. Backups are taken without any performance impact and are stored securely in Azure storage.

Key Features

Backup Types

BackupRetentionUse‑case
Automated Backups7‑35 days (configurable)Point‑in‑time recovery
Long‑term RetentionUp to 10 yearsRegulatory compliance
Copy‑only BackupsManual, retained until deletedAd‑hoc snapshots

Restore Options

Choose the appropriate restore method based on the scenario:

  1. Point‑in‑time restore (PITR): Recover to any second within the retention window.
  2. Geo‑restore: Restore to a new server in a different region from the geo‑redundant backup.
  3. Long‑term retention restore: Retrieve backups stored for compliance purposes.

Point‑in‑time Restore Example

az sql db restore \
  --dest-name MyDatabaseRestore \
  --edition Standard \
  --name MyDatabase \
  --resource-group MyResourceGroup \
  --server myserver \
  --time "2025-09-10T12:30:00Z"

Automation with Azure CLI

Integrate backup monitoring into CI/CD pipelines using Azure CLI or PowerShell. The example below checks the earliest backup date for a database:

az sql db show \
  --name MyDatabase \
  --resource-group MyResourceGroup \
  --server myserver \
  --query "earliestRestoreDate"

Related Topics

```