Skip to content

Commit f496438

Browse files
20220511 0134 made suggested updates from PR review, fixed more PowerShell typos
1 parent 0b36f42 commit f496438

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

articles/synapse-analytics/backuprestore/restore-sql-pool.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,12 @@ Get-AzSubscription
164164
Select-AzSubscription -SubscriptionName $SourceSubscriptionName
165165
166166
# list all restore points
167-
Get-AzSynapseSqlPoolRestorePoint -ResourceGroupName $ResourceGroupName -WorkspaceName $WorkspaceName -Name $SQLPoolName
167+
Get-AzSynapseSqlPoolRestorePoint -ResourceGroupName $ResourceGroupName -WorkspaceName $SourceWorkspaceName -Name $SourceSQLPoolName
168168
# Pick desired restore point using RestorePointCreationDate "xx/xx/xxxx xx:xx:xx xx"
169169
$PointInTime="<RestorePointCreationDate>"
170170
171171
# Get the specific SQL pool to restore
172-
$SQLPool = Get-AzSynapseSqlPool -ResourceGroupName $ResourceGroupName -WorkspaceName $WorkspaceName -Name $SQLPoolName
172+
$SQLPool = Get-AzSynapseSqlPool -ResourceGroupName $ResourceGroupName -WorkspaceName $SourceWorkspaceName -Name $SourceSQLPoolName
173173
# Transform Synapse SQL pool resource ID to SQL database ID because currently the restore command only accepts the SQL database ID format.
174174
$DatabaseID = $SQLPool.Id -replace "Microsoft.Synapse", "Microsoft.Sql" `
175175
-replace "workspaces", "servers" `
@@ -180,7 +180,7 @@ Select-AzSubscription -SubscriptionName $TargetSubscriptionName
180180
181181
# Restore database from a desired restore point of the source database to the target server in the desired subscription
182182
$RestoredDatabase = Restore-AzSqlDatabase –FromPointInTimeBackup –PointInTime $PointInTime -ResourceGroupName $TargetResourceGroupName `
183-
-ServerName $TargetServerName -TargetDatabaseName $TargetDatabaseName –ResourceId $Database.ID
183+
-ServerName $TargetServerName -TargetDatabaseName $TargetDatabaseName –ResourceId $DatabaseID
184184
185185
# Verify the status of restored database
186186
$RestoredDatabase.status
@@ -200,9 +200,9 @@ $RestoredDatabase.status
200200

201201
## Troubleshooting
202202
A restore operation can result in a deployment failure based on a "RequestTimeout" exception.
203-
![TimeoutException](../media/sql-pools/restore-sqlpool-troubleshooting-01.PNG)
203+
![Screenshot of timeout exception.](../media/sql-pools/restore-sql-pool-troubleshooting-01.png)
204204
This timeout can be ignored. Review the dedicated SQL pool blade in the portal and it may still have status of "Restoring" and eventually will transition to "Online".
205-
![Restoring](../media/sql-pools/restore-sqlpool-troubleshooting-02.png)
205+
![Screenshot of SQL pool restoring.](../media/sql-pools/restore-sql-pool-troubleshooting-02.png)
206206

207207
## Next Steps
208208

articles/synapse-analytics/sql-data-warehouse/sql-data-warehouse-restore-from-deleted-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ In this article, you learn how to restore a dedicated SQL pool (formerly SQL DW)
4141
```powershell
4242
$SubscriptionID="<YourSubscriptionID>"
4343
$ResourceGroupName="<YourResourceGroupName>"
44-
$ServereName="<YourServerNameWithoutURLSuffixSeeNote>" # Without database.windows.net
44+
$ServerName="<YourServerNameWithoutURLSuffixSeeNote>" # Without database.windows.net
4545
$DatabaseName="<YourDatabaseName>"
4646
$TargetServerName="<YourtargetServerNameWithoutURLSuffixSeeNote>"
4747
$TargetDatabaseName="<YourDatabaseName>"

0 commit comments

Comments
 (0)