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
+71Lines changed: 71 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,6 +206,77 @@ $RestoredDatabase.status
206
206
207
207
```
208
208
209
+
## Restore an existing dedicated SQL pool to a different tenant through PowerShell
210
+
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
+
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
+
215
+
The Powershell script for cross tenant 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.
216
+
217
+
Steps:
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.
0 commit comments