Skip to content

Commit 0164671

Browse files
Update sql-data-warehouse-restore-active-paused-dw.md
1 parent 36a9868 commit 0164671

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

articles/synapse-analytics/sql-data-warehouse/sql-data-warehouse-restore-active-paused-dw.md

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -99,24 +99,25 @@ This is similar guidance to restoring an existing dedicated SQL pool, however th
9999

100100
1. Open PowerShell.
101101

102-
2. Update Az.Sql Module to 3.8.0 (or greater) if on an older version using `Update-Module`. Otherwise it will cause failures. Powershell command to valiate the version is below.
103-
```powershell
104-
foreach ($i in (get-module -ListAvailable | ?{$_.name -eq 'az.sql'}).Version) { $version = [string]$i.Major + "." + [string]$i.Minor; if ($version -gt 3.7) {write-host "Az.Sql version $version installed. Prequisite met."} else {update-module az.sql} }
105-
```
102+
1. Update Az.Sql Module to 3.8.0 (or greater) if on an older version using `Update-Module`. Otherwise it will cause failures. A PowerShell command to valiate the version is below.
103+
104+
```powershell
105+
foreach ($i in (get-module -ListAvailable | ?{$_.name -eq 'az.sql'}).Version) { $version = [string]$i.Major + "." + [string]$i.Minor; if ($version -gt 3.7) {write-host "Az.Sql version $version installed. Prequisite met."} else {update-module az.sql} }
106+
```
106107

107-
3. Connect to your Azure account and list all the subscriptions associated with your account.
108+
1. Connect to your Azure account and list all the subscriptions associated with your account.
108109

109-
4. Select the subscription that contains the database to be restored.
110+
1. Select the subscription that contains the database to be restored.
110111

111-
5. List the restore points for the dedicated SQL pool (formerly SQL DW).
112+
1. List the restore points for the dedicated SQL pool (formerly SQL DW).
112113

113-
6. Pick the desired restore point using the RestorePointCreationDate.
114+
1. Pick the desired restore point using the RestorePointCreationDate.
114115

115-
7. Select the destination subscription in which the database should be restored.
116+
1. Select the destination subscription in which the database should be restored.
116117

117-
8. Restore the dedicated SQL pool (formerly SQL DW) to the desired restore point using [Restore-AzSqlDatabase](/powershell/module/az.sql/restore-azsqldatabase?toc=/azure/synapse-analytics/sql-data-warehouse/toc.json&bc=/azure/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json) PowerShell cmdlet.
118+
1. Restore the dedicated SQL pool (formerly SQL DW) to the desired restore point using [Restore-AzSqlDatabase](/powershell/module/az.sql/restore-azsqldatabase?toc=/azure/synapse-analytics/sql-data-warehouse/toc.json&bc=/azure/synapse-analytics/sql-data-warehouse/breadcrumb/toc.json) PowerShell cmdlet.
118119

119-
9. Verify that the restored dedicated SQL pool (formerly SQL DW) is online.
120+
1. Verify that the restored dedicated SQL pool (formerly SQL DW) is online.
120121

121122
```powershell
122123
$SourceSubscriptionName="<YourSubscriptionName>"
@@ -164,19 +165,21 @@ The following PowerShell script for cross-tenant restore works in the same way a
164165
> [!NOTE]
165166
> If you intend to restore your dedicated SQL pool (formerly SQL DW) to a Synapse workspace, use the additional PowerShell steps provided in [Restore an existing dedicated SQL pool](../backuprestore/restore-sql-pool.md). For more information on the differences between dedicated SQL pools, see [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).
166167
167-
1. Open a PowerShell terminal.
168-
1. Update Az.Sql Module to 3.8.0 (or greater) if on an older version using `Update-Module`. Otherwise it will cause failures. Powershell command to valiate the version is below.
169-
```powershell
170-
foreach ($i in (get-module -ListAvailable | ?{$_.name -eq 'az.sql'}).Version) { $version = [string]$i.Major + "." + [string]$i.Minor; if ($version -gt 3.7) {write-host "Az.Sql version $version installed. Prequisite met."} else {update-module az.sql} }
171-
```
172-
3. Connect to your Azure account using `Connect-AzAccount`.
173-
4. List all the subscriptions associated with your account along with its Tenant ID. Select the subscription that contains the source dedicated SQL pool to be restored.
174-
5. List the restore points for the dedicated SQL pool using `Get-AzSqlDatabaseRestorePoint`.
175-
6. Pick the desired restore point, setting the variable `$PointInTime`.
176-
7. In the destination tenant, make sure your user has guest access with either 'Owner' or 'Contributor' permissions.
177-
8. Select the destination subscription along with the corresponding Tenant ID to which the dedicated SQL pool should be restored.
178-
9. Restore the dedicated SQL pool to the desired restore point using `Restore-AzSqlDatabase`.
179-
10. Verify that the restored dedicated SQL pool (formerly SQL DW) is online in the new tenant.
168+
1. Open a PowerShell terminal.
169+
1. Update Az.Sql Module to 3.8.0 (or greater) if on an older version using `Update-Module`. Otherwise it will cause failures. A sample PowerShell command to valiate the version is below.
170+
171+
```powershell
172+
foreach ($i in (get-module -ListAvailable | ?{$_.name -eq 'az.sql'}).Version) { $version = [string]$i.Major + "." + [string]$i.Minor; if ($version -gt 3.7) {write-host "Az.Sql version $version installed. Prequisite met."} else {update-module az.sql} }
173+
```
174+
175+
1. Connect to your Azure account using `Connect-AzAccount`.
176+
1. List all the subscriptions associated with your account along with its Tenant ID. Select the subscription that contains the source dedicated SQL pool to be restored.
177+
1. List the restore points for the dedicated SQL pool using `Get-AzSqlDatabaseRestorePoint`.
178+
1. Pick the desired restore point, setting the variable `$PointInTime`.
179+
1. In the destination tenant, make sure your user has guest access with either 'Owner' or 'Contributor' permissions.
180+
1. Select the destination subscription along with the corresponding Tenant ID to which the dedicated SQL pool should be restored.
181+
1. Restore the dedicated SQL pool to the desired restore point using `Restore-AzSqlDatabase`.
182+
1. Verify that the restored dedicated SQL pool (formerly SQL DW) is online in the new tenant.
180183

181184
```powershell
182185
$SourceSubscriptionName="<YourSubscriptionName>"

0 commit comments

Comments
 (0)