You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The Managed Instance Contributor role does not have permission to delete LTR backups.
59
+
> The SQL Managed Instance Contributor role does not have permission to delete LTR backups.
60
60
61
61
Azure RBAC permissions could be granted in either *subscription* or *resource group* scope. However, to access LTR backups that belong to a dropped instance, the permission must be granted in the *subscription* scope of that instance.
62
62
@@ -85,7 +85,7 @@ You can configure SQL Managed Instance to [retain automated backups](../database
85
85
86
86
# [Azure CLI](#tab/azure-cli)
87
87
88
-
1. Run the [az sql midb show](/cli/azure/sql/midb#az-sql-midb-show) command to get the details for the Managed Instance database.
88
+
1. Run the [az sql midb show](/cli/azure/sql/midb#az-sql-midb-show) command to get the details for the SQL Managed Instance database.
View the backups that are retained for a specific database with an LTR policy, and restore from those backups.
163
162
164
-
1. In the Azure portal, select your managed instance and then click **Backups**. On the **Available backups** tab, select the database for which you want to see available backups. Click **Manage**.
163
+
To view available long-term backups from the Azure portal, follow these steps:
164
+
165
+
1. In the Azure portal, select your managed instance and then select **Backups**. On the **Available backups** tab, select the database for which you want to see available backups. Select **Manage**.
1. Select the backup from which you want to restore, click **Restore**, then on the restore page specify the new database name. The backup and source will be pre-populated on this page.
173
+
You can also restore from this page by choosing the backup and selecting **Restore**.
174
+
175
+
Alternatively, to restore a backup from long-term retention by using the Azure portal, follow these steps:
176
+
177
+
1. Sign in to the [Azure portal](https://portal.azure.com).
178
+
1. Go to the target SQL Managed Instance where you plan to restore your database to.
179
+
1. On the **Overview** page, choose **+ New database** to open the **Create Azure SQL Managed Database** page.
180
+
181
+
:::image type="content" source="media/point-in-time-restore/choose-database-to-restore.png" alt-text="Screenshot that shows the SQL Managed Instance overview pane in the Azure portal, with adding a new database selected. ":::
182
+
183
+
1. On the **Basics** tab of the **Create Azure SQL Managed Database page**, provide subscription and resource group details under **Project details**. Then, under **Database details** provide the new name of the database you plan to restore. Confirm the correct managed instance is listed in the drop down. Then select **Next: Data source >**
184
+
185
+
:::image type="content" source="./media/point-in-time-restore/create-database-page.png" alt-text="Screenshot of the Azure portal that shows the Basics tab of the Create Azure SQL Managed Database page.":::
186
+
187
+
1. On the **Data source** tab, choose **Point-in-time restore** under **Use existing data**. Provide the subscription, resource group and managed instance that contains the source database. From the **Managed database** drop-down, choose the database you want to restore, and then choose the point in time you want to restore the database from. The source and target instance can be the same, or two different instances. Select **Next : Additional settings >**
173
188
174
-

:::image type="content" source="./media/long-term-backup-retention-configure/restore-long-term-backup.png" alt-text="Screenshot of the Azure portal that shows the data source tab of the Create Azure SQL Managed Database page, with long-term retention selected.":::
177
190
178
-
1.Click **Review + Create** to review your Restore details. Then click **Create** to restore your database from the chosen backup.
191
+
1.On the **Additional settings**tab, you can check the box to inherit the retention policy from the source database, or, alternatively, you can select **Configure retention** to open the **Configure policies** page, and set your desired retention policies for your restored database. When finished, select **Review + create**.
179
192
180
-
1. On the toolbar, click the notification icon to view the status of the restore job.
193
+
:::image type="content" source="./media/point-in-time-restore/additional-settings-page.png" alt-text="Screenshot of the Azure portal that shows the additional settings tab of the Create Azure SQL Managed Database page.":::
1. On **Review + create**, when validation is successful, select **Create** to restore your database.
183
196
184
-
1. When the restore job is completed, open the **Managed Instance Overview** page to view the newly restored database.
197
+
This action starts the restore process, which creates a new database and populates it with data from the original database at the specified point in time. For more information about the recovery process, see [Recovery time](../database/recovery-using-backups.md#recovery-time).
185
198
186
199
> [!NOTE]
187
200
> From here, you can connect to the restored database using SQL Server Management Studio to perform needed tasks, such as to [extract a bit of data from the restored database to copy into the existing database or to delete the existing database and rename the restored database to the existing database name](../database/recovery-using-backups.md#point-in-time-restore).
Copy file name to clipboardExpand all lines: azure-sql/managed-instance/point-in-time-restore.md
+17-21Lines changed: 17 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Learn how to restore a database to an earlier point in time for Azu
5
5
author: MilanMSFT
6
6
ms.author: mlazic
7
7
ms.reviewer: mathoma, nvraparl
8
-
ms.date: 03/01/2023
8
+
ms.date: 03/25/2023
9
9
ms.service: sql-managed-instance
10
10
ms.subservice: backup-restore
11
11
ms.topic: how-to
@@ -95,36 +95,32 @@ If you restore to a different subscription, the [Create or Update v5.0.2022](/re
95
95
96
96
# [Portal](#tab/azure-portal)
97
97
98
-
1. Sign in to the [Azure portal](https://portal.azure.com).
99
-
1. In SQL Managed Instance, go to your source managed instance.
100
-
1. In **Managed Instance databases**, select the database to restore.
98
+
To restore an existing database, you can do so by going to the database page in the Azure portal, and selecting **Restore**.
99
+
100
+
Alternatively to restore your database, you can follow these steps:
101
101
102
-
:::image type="content" source="media/point-in-time-restore/choose-database-to-restore.png" alt-text="Screenshot that shows the SQL Managed Instance overview pane in the Azure portal, with a database selected. ":::
102
+
1. Sign in to the [Azure portal](https://portal.azure.com).
103
+
1. Go to the target SQL Managed Instance where you plan to restore your database to.
104
+
1. On the **Overview** page, choose **+ New database** to open the **Create Azure SQL Managed Database** page.
103
105
104
-
1. In the command bar, select **Restore**.
106
+
:::image type="content" source="media/point-in-time-restore/choose-database-to-restore.png" alt-text="Screenshot that shows the SQL Managed Instance overview pane in the Azure portal, with adding a new database selected. ":::
105
107
106
-
:::image type="content" source="./media/point-in-time-restore/restore-database-to-mi.png" alt-text="Screenshot that shows a database overview pane in the Azure portal, with the Restore button highlighted.":::
108
+
1. On the **Basics** tab of the **Create Azure SQL Managed Database page**, provide subscription and resource group details under **Project details**. Then, under **Database details** provide the new name of the database you plan to restore. Confirm the correct managed instance is listed in the drop down. Then select **Next: Data source >**
107
109
108
-
1. In **Create Azure SQL Managed Database** on the **Basics** tab:
110
+
:::image type="content" source="./media/point-in-time-restore/create-database-page.png" alt-text="Screenshot of the Azure portal that shows the Basics tab of the Create Azure SQL Managed Database page.":::
109
111
110
-
1. Under **Project details**, select the target destination subscription and resource group that contain the managed instance to restore the database to.
111
-
1. Under **Database details**, enter a new name for your restored database and the target managed instance to restore the database to.
112
-
1. Select the **Data source** tab.
112
+
1. On the **Data source** tab, choose **Point-in-time restore** under **Use existing data**. Provide the subscription, resource group and managed instance that contains the source database. From the **Managed database** drop-down, choose the database you want to restore, and then choose the point in time you want to restore the database from. The source and target instance can be the same, or two different instances. Select **Next : Additional settings >**
113
113
114
-
1. In **Data source**:
114
+
:::image type="content" source="./media/point-in-time-restore/database-data-source.png" alt-text="Screenshot of the Azure portal that shows the data source tab of the Create Azure SQL Managed Database page, with point-in-time restore selected.":::
115
115
116
-
1. Select **Continuous backup**. Select the subscription and resource group for the source database to restore.
117
-
1. In **Managed Database**, select the database to restore. Select the point-in-time restore point to restore the database from.
118
-
1. Select the **Additional settings** tab.
116
+
1. On the **Additional settings** tab, you can check the box to inherit the retention policy from the source database, or, alternatively, you can select **Configure retention** to open the **Configure policies** page, and set your desired retention policies for your restored database. When finished, select **Review + create**.
119
117
120
-
1. In **Additional settings**:
118
+
:::image type="content" source="./media/point-in-time-restore/additional-settings-page.png" alt-text="Screenshot of the Azure portal that shows the additional settings tab of the Create Azure SQL Managed Database page.":::
121
119
122
-
1. Either select or clear the option for your restored database to inherit the retention settings of the source database. If you don't use this option, select **Configure retention** to set a new retention policy.
123
-
1. Select the **Review + create** tab to validate your database restore settings.
124
120
125
-
1.In**Review + create**, when validation is successful, select **Create** to restore your database.
121
+
1.On**Review + create**, when validation is successful, select **Create** to restore your database.
126
122
127
-
This action starts the restore process, which creates a new database and populates it with data from the original database at the specified point in time. For more information about the recovery process, see [Recovery time](../database/recovery-using-backups.md#recovery-time).
123
+
This action starts the restore process, which creates a new database and populates it with data from the original database at the specified point in time. For more information about the recovery process, see [Recovery time](../database/recovery-using-backups.md#recovery-time).
To restore the database to another subscription, set the context to the the target subscription (`Set-AzContext`) and be sure to provide values for the required parameters `-TargetSubscriptionID`, and `-DeleteDate`:
284
+
To restore the database to another subscription, set the context to the target subscription (`Set-AzContext`) and be sure to provide values for the required parameters `-TargetSubscriptionID`, and `-DeleteDate`:
Copy file name to clipboardExpand all lines: azure-sql/managed-instance/recovery-using-backups.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Learn about point-in-time restore, which enables you to roll back a
5
5
author: MilanMSFT
6
6
ms.author: mlazic
7
7
ms.reviewer: wiassaf, mathoma, danil
8
-
ms.date: 11/16/2022
8
+
ms.date: 03/25/2023
9
9
ms.service: sql-managed-instance
10
10
ms.subservice: backup-restore
11
11
ms.topic: how-to
@@ -95,11 +95,15 @@ You generally restore a database to an earlier point for recovery purposes. You
95
95
96
96
### [Azure portal](#tab/azure-portal)
97
97
98
-
To recover a database in SQL Managed Instance to a point in time by using the Azure portal, open the source database overview page, and select**Restore** on the toolbar. Provide target managed instance details on the **Basics** tab, and source managed instance details on the **Data source**tab. Configure retention settings on the **Additional settings**tab.
98
+
To recover a database in SQL Managed Instance to a point in time by using the Azure portal, you can go to the database in the portal and choose**Restore**. Alternatively, you can open the target SQL Managed Instance overview page, and select **+ New database**on the toolbar to open the **Create Azure SQL Managed Database**page.
99
99
100
-
:::image type="content" source="media/point-in-time-restore/choose-database-to-restore.png" alt-text="Screenshot of the Azure portal, SQL Managed Instance overview blade, with a database selected. ":::
100
+
:::image type="content" source="media/point-in-time-restore/choose-database-to-restore.png" alt-text="Screenshot that shows the SQL Managed Instance overview pane in the Azure portal, with adding a new database selected. ":::
101
101
102
-
:::image type="content" source="./media/point-in-time-restore/restore-database-to-mi.png" alt-text="Screenshot of the Azure portal, database overview page, Restore is highlighted.":::
102
+
Provide target managed instance details on the **Basics** tab, and choose a type of backup from the **Data source** tab.
103
+
104
+
:::image type="content" source="./media/point-in-time-restore/database-data-source.png" alt-text="Screenshot of the Azure portal that shows the data source tab of the Create Azure SQL Managed Database page, with point-in-time restore selected.":::
105
+
106
+
For greater details, review the [Point in time restore](point-in-time-restore.md#restore-an-existing-database) article.
0 commit comments