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
Copy file name to clipboardExpand all lines: articles/synapse-analytics/backuprestore/restore-sql-pool.md
+63-44Lines changed: 63 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@ manager: joannapea
6
6
ms.service: synapse-analytics
7
7
ms.topic: how-to
8
8
ms.subservice: sql
9
-
ms.date: 10/07/2022
9
+
ms.date: 12/07/2022
10
10
ms.author: stevehow
11
-
ms.reviewer: joanpo
11
+
ms.reviewer: joanpo, wiassaf
12
12
ms.custom: seo-lt-2019, engagement-fy23
13
13
---
14
14
@@ -36,7 +36,7 @@ In this article, you learn how to restore an existing dedicated SQL pool in Azur
36
36
37
37
* If the dedicated SQL pool doesn't have any automatic restore points, wait a few hours, or create a user defined restore point before restoring. For User-Defined Restore Points, select an existing one or create a new one.
38
38
39
-
* If you want to restore a dedicated SQL pool from a different workspace, select **New dedicated SQL pool** from your current workspace. Under the **Additional settings** tab find the **Use existing data** and select the **Restore point** option. As shown in the above screenshot, you can then select the **Server or workspace** name from which you can restore.
39
+
* If you want to restore a dedicated SQL pool from a different workspace, select **New dedicated SQL pool** from your current workspace. Under the **Additional settings** tab, find the **Use existing data** and select the **Restore point** option. As shown in the above screenshot, you can then select the **Server or workspace** name from which you can restore.
40
40
41
41
* If you are restoring a geo-backup, select the workspace located in the source region and the dedicated SQL pool you want to restore.
42
42
@@ -210,72 +210,90 @@ $RestoredDatabase.status
210
210
211
211
When performing a cross-tenant-subscription restore, a dedicated SQL pool in an Azure Synapse workspace can only restore directly to a standalone dedicated SQL pool (formerly SQL DW). If it is required to restore a dedicated SQL pool in an Azure Synapse workspace to a workspace in the destination subscription across a different tenant, an additional restore step is required.
212
212
213
-
For cross-tenant-subscription restore, the user must have a 'GUEST' account with either the 'Owner' or 'Contributor' access permissions to the destination tenant to which the dedicated SQL pool (formerly SQL DW) will be restored to.
213
+
For cross-tenant-subscription restore, the user must have a '(Guest)' account with either the 'Owner' or 'Contributor' access permissions to the destination tenant to which the dedicated SQL pool (formerly SQL DW) will be restored to.
214
214
215
-
The Powershell script for crosstenant restore works the in the same way as cross-subscription restore when the user is given 'GUEST' access to the destination tenant. As a best practice it is advised to also use the destination Tenant ID along with the destination subscription ID.
215
+
The following PowerShell script for cross-tenant restore works in the same way as a cross-subscription restore when the user is given '(Guest)' access to the destination tenant.
216
216
217
217
Steps:
218
218
219
-
1. Open a PowerShell terminal.
220
-
2. Update Az.Sql Module to 3.8.0 (or greater) if needed
221
-
3. Connect to your Azure account and list all the subscriptions associated with your account along with its Tenant ID.
222
-
4. Select the subscription that contains the SQL pool to be restored.
223
-
5. List the restore points for the dedicated SQL pool.
224
-
6. Pick the desired restore point using the RestorePointCreationDate.
225
-
7. Create a ‘Guest’ account with either ‘Owner’ or ‘Contributor’ permissions.
226
-
8. Select the destination subscription along with the corresponding Tenant ID to which the SQL pool should be restored.
227
-
9. Restore the dedicated SQL pool to the desired restore point using Restore-AzSqlDatabase PowerShell cmdlet.
228
-
10. Verify that the restored dedicated SQL pool (formerly SQL DW) is online.
229
-
11. If the desired destination is a Synapse Workspace, uncomment the code to perform the additional restore step.
230
-
a. Create a restore point for the newly created data warehouse.
231
-
b. Retrieve the last restore point created by using the Select -Last 1 syntax.
232
-
c. Perform the restore to the desired Azure Synapse workspace.
219
+
1. Open a PowerShell terminal.
220
+
1. Update Az.Sql Module to 3.8.0 (or greater) using `Update-Module`.
221
+
1. Connect to your Azure account using `Connect-AzAccount`.
222
+
1. List all the subscriptions associated with your account along with its Tenant ID. Select the subscription that contains the dedicated SQL pool to be restored.
223
+
1. List the restore points for the dedicated SQL pool using `Get-AzSynapseSqlPoolRestorePoint`.
224
+
1. Pick the desired restore point, setting the variable `$PointInTime`.
225
+
1. In the destination tenant, make sure your user has guest access with either 'Owner' or 'Contributor' permissions.
226
+
1. Select the destination subscription along with the corresponding Tenant ID to which the dedicated SQL pool should be restored.
227
+
1. Restore the dedicated SQL pool to the desired restore point using `Restore-AzSqlDatabase`.
228
+
1. Verify that the restored dedicated SQL pool (formerly SQL DW) is online.
229
+
1. If the desired destination is a Synapse workspace, uncomment the code to perform the additional restore step.
230
+
1. Create a restore point for the newly created data warehouse.
231
+
1. Retrieve the last restore point created by using the `Select -Last 1` syntax.
232
+
1. Perform the restore to the desired Azure Synapse workspace.
-[What's the difference between Azure Synapse (formerly SQL DW) and Azure Synapse Analytics Workspace](https://techcommunity.microsoft.com/t5/azure-synapse-analytics-blog/what-s-the-difference-between-azure-synapse-formerly-sql-dw-and/ba-p/3597772)
0 commit comments