Skip to content

Commit 9639082

Browse files
authored
Merge pull request #36260 from WilliamDAssafMSFT/20260115-sql-mi-backups
20260115 secondary replicas, add limitation
2 parents 2119369 + 121c2ec commit 9639082

3 files changed

Lines changed: 35 additions & 19 deletions

File tree

azure-sql/database/recovery-using-backups.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
title: Restore a Database from a Backup
33
titleSuffix: Azure SQL Database
44
description: Learn about point-in-time restore, which enables you to roll back a database in Azure SQL Database up to 35 days.
5-
author: dnethi
6-
ms.author: dinethi
7-
ms.reviewer: wiassaf, mathoma, danil
8-
ms.date: 05/14/2025
5+
author: WilliamDAssafMSFT
6+
ms.author: wiassaf
7+
ms.reviewer: dinethi, mathoma, danil
8+
ms.date: 01/26/2026
99
ms.service: azure-sql-database
1010
ms.subservice: backup-restore
1111
ms.topic: how-to
@@ -88,13 +88,6 @@ When the restore is complete, it creates a new database on the same server as th
8888

8989
You generally restore a database to an earlier point for recovery purposes. You can treat the restored database as a replacement for the original database or use it as a data source to update the original database.
9090

91-
> [!IMPORTANT]
92-
> - You can perform a point-in-time restore of a database to the same server. Cross-server, cross-subscription, and cross-geo point-in-time restore is not currently supported. To restore a database to a different region using geo-replicated backups see [Geo-restore](#geo-restore).
93-
> - You can't perform a point-in-time restore on a geo-secondary database. You can do so only on a primary database.
94-
> - The `BackupFrequency` parameter isn't supported for Hyperscale databases.
95-
> - Database restore operations are resource-intensive and might require a service tier of S3 or greater for the restoring (target) database. Once restore completes, the database or elastic pool might be scaled down, if required.
96-
> - If you created any [In-Memory OLTP](in-memory-oltp-overview.md#in-memory-oltp) objects in a database in the Business Critical or Premium service tiers, then you must use the Business Critical or Premium service tiers for the restored database. For more information, see [Restore a database with In-Memory OLTP objects](in-memory-oltp-overview.md#restore-a-database-with-in-memory-oltp-objects).
97-
9891
- **Database replacement**
9992

10093
If you want the restored database to be a replacement for the original database, you should specify the original database's compute size and service tier. You can then rename the original database and give the restored database the original name by using the [ALTER DATABASE](/sql/t-sql/statements/alter-database-azure-sql-database) command in T-SQL.
@@ -144,6 +137,15 @@ To recover a database from a PITR backup by using the REST API:
144137

145138
---
146139

140+
### Point-in-time restore considerations
141+
142+
- You can perform a point-in-time restore of a database to the same server. Cross-server, cross-subscription, and cross-geo point-in-time restore is not currently supported. To restore a database to a different region using geo-replicated backups, see [Geo-restore](#geo-restore).
143+
- You can't perform a point-in-time restore on a geo-secondary database. You can do so only on a primary database.
144+
- The `BackupFrequency` parameter isn't supported for Hyperscale databases.
145+
- Database restore operations are resource-intensive and might require a service tier of S3 or greater for the restoring (target) database. Once restore completes, the database or elastic pool might be scaled down, if required.
146+
- If you created any [In-Memory OLTP](in-memory-oltp-overview.md#in-memory-oltp) objects in a database in the Business Critical or Premium service tiers, then you must use the Business Critical or Premium service tiers for the restored database. For more information, see [Restore a database with In-Memory OLTP objects](in-memory-oltp-overview.md#restore-a-database-with-in-memory-oltp-objects).
147+
- When you do a point-in-time restore on a database that has change data capture (CDC) enabled, ensure the source database has enough allocated space.
148+
147149
## Long-term backup restore
148150

149151
To perform a restore operation on a long-term backup, you can use the Azure portal, the Azure CLI, Azure PowerShell, or the REST API. For more information, see [Restore a long-term backup](long-term-backup-retention-configure.md#view-backups-and-restore-from-a-backup).

azure-sql/managed-instance/automated-backups-overview.md

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
title: Automatic, Geo-Redundant Backups
33
titleSuffix: Azure SQL Managed Instance
44
description: Learn how Azure SQL Managed Instance automatically backs up all databases and provides point-in-time restore capability.
5-
author: dinethi
6-
ms.author: dinethi
7-
ms.reviewer: mathoma, wiassaf, mlandzic, strrodic, danil, randolphwest
8-
ms.date: 06/26/2025
5+
author: MashaMSFT
6+
ms.author: mathoma
7+
ms.reviewer: dinethi, wiassaf, mlandzic, strrodic, danil, randolphwest
8+
ms.date: 01/15/2026
99
ms.service: azure-sql-managed-instance
1010
ms.subservice: backup-restore
1111
ms.topic: concept-article
@@ -107,6 +107,19 @@ You can use these backups to:
107107
> Geo-restore is available only for databases that are configured with geo-redundant backup storage. If you're not currently using geo-replicated backups for a database, you can change this by [configuring backup storage redundancy](automated-backups-change-settings.md#configure-backup-storage-redundancy).
108108
- [Restore a database from a long-term backup](../database/long-term-retention-overview.md) of a database, if the database has a configured LTR policy. LTR allows you to [restore an older version of the database](long-term-backup-retention-configure.md) by using the Azure portal, the Azure CLI, or Azure PowerShell to satisfy a compliance request or to run an old version of the application. For more information, see [Long-term retention backups - Azure SQL Database and Azure SQL Managed Instance](../database/long-term-retention-overview.md).
109109

110+
## Automatic backups on secondary replicas
111+
112+
Automatic backups are now taken from a secondary replica in the [Business Critical service tier](service-tiers-managed-instance-vcore.md#business-critical). Since data is replicated between SQL Database Engine processes on each node, the backup service takes the backup from the non-readable secondary replicas. This design ensures the primary replica remains dedicated to your main workload, and the readable secondary replica is dedicated to read-only workloads. Automatic backups in the Business Critical service tier are taken from a secondary replica most of the time. If an automatic backup fails on a secondary replica, then the backup service takes the backup from the primary replica.
113+
114+
Automatic backups on secondary replicas:
115+
116+
- Are enabled by default.
117+
- Are included at no additional cost beyond the price of the service tier.
118+
- Bring improved performance and predictability to the Business Critical service tier.
119+
120+
> [!NOTE]
121+
> Create an Azure support request to disable this feature for your instance.
122+
110123
## Restore capabilities and features
111124

112125
This table summarizes the capabilities and features of [point-in-time restore](recovery-using-backups.md#point-in-time-restore) (PITR), [geo-restore](recovery-using-backups.md#geo-restore), and [long-term retention](../database/long-term-retention-overview.md).

azure-sql/managed-instance/recovery-using-backups.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
title: Restore a Database from a Backup
33
titleSuffix: Azure SQL Managed Instance
44
description: Learn about point-in-time restore, which enables you to roll back a database in Azure SQL Managed Instance up to 35 days.
5-
author: dinethi
6-
ms.author: dinethi
7-
ms.reviewer: wiassaf, mathoma, strrodic, mlandzic
8-
ms.date: 12/05/2025
5+
author: MashaMSFT
6+
ms.author: mathoma
7+
ms.reviewer: dinethi, mathoma, wiassaf, strrodic, mlandzic
8+
ms.date: 01/15/2026
99
ms.service: azure-sql-managed-instance
1010
ms.subservice: backup-restore
1111
ms.topic: how-to
@@ -232,6 +232,7 @@ Consider the following limitations when working with backups and Azure SQL Manag
232232
- Database backups taken from instances configured with the [SQL Server 2022 update policy](update-policy.md#sql-server-2022-update-policy) can be restored to instances configured with either the **SQL Server 2022**, **SQL Server 2025**, or **Always-up-to-date** update policy.
233233
- Database backups taken from instances configured with the [SQL Server 2025 update policy](update-policy.md#sql-server-2025-update-policy) can be restored to instances configured with either the **SQL Server 2025**, or **Always-up-to-date** update policy.
234234
- Database backups taken from instances configured with the [Always-up-to-date update policy](update-policy.md#always-up-to-date-update-policy) can only be restored to instances also configured with the **Always-up-to-date** update policy.
235+
- Restoring a backup from an HNS-enabled (ADLS Gen2) account is not supported.
235236

236237
## Related content
237238

0 commit comments

Comments
 (0)