Skip to content

Commit db58023

Browse files
Merge pull request #26502 from MashaMSFT/202303_pitrpics
updated screenshots
2 parents 50ddf1b + 19a0bc0 commit db58023

9 files changed

Lines changed: 52 additions & 39 deletions

File tree

azure-sql/managed-instance/long-term-backup-retention-configure.md

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to store and restore automated backups on separate Azure
44
author: SudhirRaparla
55
ms.author: nvraparl
66
ms.reviewer: mathoma
7-
ms.date: 09/12/2021
7+
ms.date: 03/25/2023
88
ms.service: sql-managed-instance
99
ms.subservice: backup-restore
1010
ms.topic: how-to
@@ -43,7 +43,7 @@ Prepare your environment for PowerShell.
4343
For **Get-AzSqlInstanceDatabaseLongTermRetentionBackup** and **Restore-AzSqlInstanceDatabase**, you will need to have one of the following roles:
4444

4545
- Subscription Owner role or
46-
- Managed Instance Contributor role or
46+
- SQL Managed Instance Contributor role or
4747
- Custom role with the following permissions:
4848
- `Microsoft.Sql/locations/longTermRetentionManagedInstanceBackups/read`
4949
- `Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionManagedInstanceBackups/read`
@@ -56,7 +56,7 @@ For **Remove-AzSqlInstanceDatabaseLongTermRetentionBackup**, you will need to ha
5656
- `Microsoft.Sql/locations/longTermRetentionManagedInstances/longTermRetentionDatabases/longTermRetentionManagedInstanceBackups/delete`
5757

5858
> [!NOTE]
59-
> 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.
6060
6161
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.
6262

@@ -85,7 +85,7 @@ You can configure SQL Managed Instance to [retain automated backups](../database
8585
8686
# [Azure CLI](#tab/azure-cli)
8787

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.
8989

9090
```azurecli
9191
az sql midb show /
@@ -159,29 +159,42 @@ Set-AzSqlInstanceDatabaseBackupLongTermRetentionPolicy @LTRPolicy
159159

160160
# [Portal](#tab/portal)
161161

162-
View the backups that are retained for a specific database with an LTR policy, and restore from those backups.
163162

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**.
165166

166167
![select database](./media/long-term-backup-retention-configure/ltr-available-backups-select-database.png)
167168

168169
1. In the **Manage backups** pane, review the available backups.
169170

170171
![view backups](./media/long-term-backup-retention-configure/ltr-available-backups.png)
171172

172-
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 >**
173188

174-
![select backup for restore](./media/long-term-backup-retention-configure/ltr-available-backups-restore.png)
175-
176-
![restore](./media/long-term-backup-retention-configure/ltr-restore.png)
189+
:::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.":::
177190

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**.
179192

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.":::
181194

182-
![restore job progress](./media/long-term-backup-retention-configure/restore-job-progress-long-term.png)
195+
1. On **Review + create**, when validation is successful, select **Create** to restore your database.
183196

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).
185198

186199
> [!NOTE]
187200
> 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).
123 KB
Loading
66.6 KB
Loading
110 KB
Loading
110 KB
Loading
102 KB
Loading
Binary file not shown.

azure-sql/managed-instance/point-in-time-restore.md

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to restore a database to an earlier point in time for Azu
55
author: MilanMSFT
66
ms.author: mlazic
77
ms.reviewer: mathoma, nvraparl
8-
ms.date: 03/01/2023
8+
ms.date: 03/25/2023
99
ms.service: sql-managed-instance
1010
ms.subservice: backup-restore
1111
ms.topic: how-to
@@ -95,36 +95,32 @@ If you restore to a different subscription, the [Create or Update v5.0.2022](/re
9595

9696
# [Portal](#tab/azure-portal)
9797

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:
101101

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.
103105

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. ":::
105107

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 >**
107109

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.":::
109111

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 >**
113113

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.":::
115115

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**.
119117

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.":::
121119

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.
124120

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.
126122

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).
128124

129125
# [PowerShell](#tab/azure-powershell)
130126

@@ -285,7 +281,7 @@ Restore-AzSqlinstanceDatabase -FromPointInTimeBackup -Name $deletedDatabase.Name
285281
-TargetInstanceName $targetInstanceName
286282
```
287283

288-
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`:
289285

290286
```powershell-interactive
291287
Set-AzContext -SubscriptionID "targetSubscriptionID"

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn about point-in-time restore, which enables you to roll back a
55
author: MilanMSFT
66
ms.author: mlazic
77
ms.reviewer: wiassaf, mathoma, danil
8-
ms.date: 11/16/2022
8+
ms.date: 03/25/2023
99
ms.service: sql-managed-instance
1010
ms.subservice: backup-restore
1111
ms.topic: how-to
@@ -95,11 +95,15 @@ You generally restore a database to an earlier point for recovery purposes. You
9595

9696
### [Azure portal](#tab/azure-portal)
9797

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.
9999

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. ":::
101101

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.
103107

104108
### [Azure CLI](#tab/azure-cli)
105109

0 commit comments

Comments
 (0)