Das Cmdlet Restore-AzSynapseSqlPool stellt einen Sql-Pool von Azure Synapse Analytics aus einer georedundanten Sicherung, einer Sicherung eines gelöschten SQL-Pools oder eines Wiederherstellungspunkts eines beliebigen SQL-Pools wieder her.
Der wiederhergestellte SQL-Pool wird als neuer SQL-Pool erstellt.
Beispiele
Beispiel 1
$pool = Get-AzSynapseSqlPool -ResourceGroupName ContosoResourceGroup -WorkspaceName ContosoWorkspace -Name ContosoSqlPool
# Get the latest restore point
$restorePoint = $pool | Get-AzSynapseSqlPoolRestorePoint | Select-Object -Last 1
# Restore to same workspace with source SQL pool
$restoredPool = Restore-AzSynapseSqlPool -FromRestorePoint -RestorePoint $restorePoint.RestorePointCreationDate -TargetSqlPoolName ContosoRestoredSqlPool -ResourceGroupName $pool.ResourceGroupName -WorkspaceName $pool.WorkspaceName -ResourceId $pool.Id -PerformanceLevel DW200c
Mit diesem Befehl wird ein SQL-Pool von Azure Synapse Analytics erstellt, indem ein Wiederherstellungspunkt aus einem vorhandenen SQL-Pool zum Wiederherstellen oder Kopieren aus einem vorherigen Zustand verwendet wird.
Beispiel 2
$pool = Get-AzSynapseSqlPoolGeoBackup -ResourceGroupName ContosoResourceGroup -WorkspaceName ContosoWorkspace -Name ContosoSqlPool
# Restore to same workspace with source SQL pool
$restoredPool = Restore-AzSynapseSqlPool -FromBackup -TargetSqlPoolName ContosoRestoredSqlPool -ResourceGroupName $pool.ResourceGroupName -WorkspaceName $pool.WorkspaceName -ResourceId $pool.Id
Mit diesem Befehl wird ein SQL-Pool von Azure Synapse Analytics erstellt, der aus der SQL-Poolsicherung wiederhergestellt wird.
Beispiel 3
$pool = Get-AzSynapseDroppedSqlPool -ResourceGroupName ContosoResourceGroup -WorkspaceName ContosoWorkspace -Name ContosoSqlPool
$poolId = $pool.Id.Split(",")[0]
# Restore to same workspace with source SQL pool
$restoredPool = Restore-AzSynapseSqlPool -FromDroppedSqlPool -DeletionDate $pool.DeletionDate -TargetSqlPoolName ContosoRestoredSqlPool -ResourceGroupName $pool.ResourceGroupName -WorkspaceName $pool.WorkspaceName -ResourceId $poolId
Mit diesem Befehl wird ein SQL-Pool von Azure Synapse Analytics erstellt, der aus der gelöschten SQL-Poolsicherung wiederhergestellt wird.
Beispiel 4
$pool = Get-AzSynapseSqlPool -ResourceGroupName ContosoResourceGroup -WorkspaceName ContosoWorkspace -Name ContosoSqlPool
# Get the latest restore point
$restorePoint = $pool | Get-AzSynapseSqlPoolRestorePoint | Select-Object -Last 1
# Restore to same workspace with source SQL pool
$restoredPool = Restore-AzSynapseSqlPool -FromRestorePoint -RestorePoint $restorePoint.RestorePointCreationDate -TargetSqlPoolName ContosoRestoredSqlPool -ResourceGroupName $pool.ResourceGroupName -WorkspaceName $pool.WorkspaceName -ResourceId $pool.Id -PerformanceLevel DW200c -Tag @{"tagName" = "tagValue"} -StorageAccountType LRS
Mit diesem Befehl wird ein SQL-Pool von Azure Synapse Analytics mit angegebenen Tags und speicherkontotyp erstellt, indem ein Wiederherstellungspunkt aus einem vorhandenen SQL-Pool verwendet wird, um einen vorherigen Zustand wiederherzustellen oder zu kopieren.
Gibt an, einen Wiederherstellungspunkt aus einem beliebigen SQL-Pool in diesem Abonnement zu nutzen, um einen vorherigen Zustand wiederherzustellen oder zu kopieren.
Gibt an, einen Wiederherstellungspunkt aus einem beliebigen SQL-Pool in diesem Abonnement zu nutzen, um einen vorherigen Zustand wiederherzustellen oder zu kopieren.
Dieses Cmdlet unterstützt die allgemeinen Parameter -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction und -WarningVariable. Weitere Informationen findest du unter about_CommonParameters.
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.