Skip to content

Commit f6c70b8

Browse files
Merge branch 'patch-1' of https://github.com/azurepocmain/azure-docs into 20240729-restore-sql-pool-from-deleted-workspace.md
2 parents 0be6024 + 90cba1d commit f6c70b8

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

articles/synapse-analytics/backuprestore/restore-sql-pool-from-deleted-workspace.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ In this article, you learn how to restore a dedicated SQL pool in Azure Synapse
5050
Connect-AzAccount
5151
Set-AzContext -SubscriptionID $SubscriptionID
5252
53-
# Define the approximate point in time the workspace was dropped as DroppedDateTime "yyyy-MM-ddThh:mm:ssZ" (ex. 2022-01-01T16:15:00Z)
54-
$PointInTime="<DroppedDateTime>"
55-
$DroppedDateTime = Get-Date -Date $PointInTime
56-
57-
53+
# Get the exact date and time the workspace SQL pool was dropped.
54+
# Please note that this assumes that the workspace with the same name resource group and same values is still available.
55+
# If not, please recreate the dropped workspace to get the output from the below. You will have to use the same workspace name, resource group name, region and all the same values from prior dropped workspace.
56+
# There should only be one selection to select from.
57+
$DroppedDateTime = Get-AzSynapseDroppedSqlPool -ResourceGroupName $ResourceGroupName -WorkspaceName $WorkspaceName -Name $DatabaseName | Select-Object -ExpandProperty DeletionDate
58+
59+
5860
# construct the resource ID of the sql pool you wish to recover. The format required Microsoft.Sql. This includes the approximate date time the server was dropped.
5961
$SourceDatabaseID = "/subscriptions/"+$SubscriptionID+"/resourceGroups/"+$ResourceGroupName+"/providers/Microsoft.Sql/servers/"+$WorkspaceName+"/databases/"+$DatabaseName
6062

0 commit comments

Comments
 (0)