Restore-AzSynapseSqlPool
Stellt einen Synapse Analytics SQL-Pool wieder her.
Syntax
Restore-AzSynapseSqlPool
[-FromBackup]
[-ResourceGroupName <String>]
-WorkspaceName <String>
-Name <String>
-ResourceId <String>
[-Tag <Hashtable>]
[-StorageAccountType <String>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Restore-AzSynapseSqlPool
[-FromBackup]
-WorkspaceObject <PSSynapseWorkspace>
-Name <String>
-ResourceId <String>
[-Tag <Hashtable>]
[-StorageAccountType <String>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Restore-AzSynapseSqlPool
[-FromRestorePoint]
[-ResourceGroupName <String>]
-WorkspaceName <String>
-Name <String>
-PerformanceLevel <String>
-ResourceId <String>
-RestorePoint <DateTime>
[-Tag <Hashtable>]
[-StorageAccountType <String>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Restore-AzSynapseSqlPool
[-FromRestorePoint]
-WorkspaceObject <PSSynapseWorkspace>
-Name <String>
-PerformanceLevel <String>
-ResourceId <String>
-RestorePoint <DateTime>
[-Tag <Hashtable>]
[-StorageAccountType <String>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Restore-AzSynapseSqlPool
[-FromDroppedSqlPool]
[-ResourceGroupName <String>]
-WorkspaceName <String>
-Name <String>
-ResourceId <String>
-DeletionDate <DateTime>
[-Tag <Hashtable>]
[-StorageAccountType <String>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Restore-AzSynapseSqlPool
[-FromDroppedSqlPool]
-WorkspaceObject <PSSynapseWorkspace>
-Name <String>
-ResourceId <String>
-DeletionDate <DateTime>
[-Tag <Hashtable>]
[-StorageAccountType <String>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Beschreibung
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
# Transform Synapse SQL pool resource ID to SQL database ID because
# currently the command only accepts the SQL databse ID. For example: /subscriptions/<SubscriptionId>/resourceGroups/<ResourceGroupName>/providers/Microsoft.Sql/servers/<WorkspaceName>/databases/<DatabaseName>
$pool = Get-AzSynapseSqlPool -ResourceGroupName ContosoResourceGroup -WorkspaceName ContosoWorkspace -Name ContosoSqlPool
$databaseId = $pool.Id -replace "Microsoft.Synapse", "Microsoft.Sql" `
-replace "workspaces", "servers" `
-replace "sqlPools", "databases"
# 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 $databaseId -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
# Transform Synapse SQL pool resource ID to SQL database ID because
# currently the command only accepts the SQL databse ID. For example: /subscriptions/<SubscriptionId>/resourceGroups/<ResourceGroupName>/providers/Microsoft.Sql/servers/<WorkspaceName>/recoverabledatabases/<DatabaseName>
$pool = Get-AzSynapseSqlPoolGeoBackup -ResourceGroupName ContosoResourceGroup -WorkspaceName ContosoWorkspace -Name ContosoSqlPool
$databaseId = $pool.Id -replace "Microsoft.Synapse", "Microsoft.Sql" `
-replace "workspaces", "servers"
# Restore to same workspace with source SQL pool
$restoredPool = Restore-AzSynapseSqlPool -FromBackup -TargetSqlPoolName ContosoRestoredSqlPool -ResourceGroupName $pool.ResourceGroupName -WorkspaceName $pool.WorkspaceName -ResourceId $databaseId
Mit diesem Befehl wird ein SQL-Pool von Azure Synapse Analytics erstellt, der aus der SQL-Poolsicherung wiederhergestellt wird.
Beispiel 3
# Transform Synapse dropped SQL pool resource ID to SQL pool resource ID
$pool = Get-AzSynapseDroppedSqlPool -ResourceGroupName ContosoResourceGroup -WorkspaceName ContosoWorkspace -Name ContosoSqlPool
$poolId = $pool.Id.Split(",")[0]
$poolId = $poolId -replace "restorableDroppedSqlPools", "sqlPools"
# 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
# Transform Synapse SQL pool resource ID to SQL database ID because
# currently the command only accepts the SQL databse ID. For example: /subscriptions/<SubscriptionId>/resourceGroups/<ResourceGroupName>/providers/Microsoft.Sql/servers/<WorkspaceName>/databases/<DatabaseName>
$pool = Get-AzSynapseSqlPool -ResourceGroupName ContosoResourceGroup -WorkspaceName ContosoWorkspace -Name ContosoSqlPool
$databaseId = $pool.Id -replace "Microsoft.Synapse", "Microsoft.Sql" `
-replace "workspaces", "servers" `
-replace "sqlPools", "databases"
# 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 $databaseId -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.
Parameter
-AsJob
Cmdlet im Hintergrund ausführen
Typ: | SwitchParameter |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Hiermit werden Sie vor der Ausführung des Cmdlets zur Bestätigung aufgefordert.
Typ: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Anmeldeinformationen, Konto, Mandant und Abonnement für die Kommunikation mit Azure
Typ: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DeletionDate
Das Löschdatum des Azure Synaspe-SQL-Datenbank zum Abrufen von Sicherungen für millisekundengenau (z. B. 2016-02-23T00:21:22.847Z)
Typ: | DateTime |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FromBackup
Gibt an, dass aus der neuesten Sicherung eines SQL-Pools in diesem Abonnement wiederhergestellt werden soll.
Typ: | SwitchParameter |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FromDroppedSqlPool
Gibt an, einen Wiederherstellungspunkt aus einem beliebigen SQL-Pool in diesem Abonnement zu nutzen, um einen vorherigen Zustand wiederherzustellen oder zu kopieren.
Typ: | SwitchParameter |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-FromRestorePoint
Gibt an, einen Wiederherstellungspunkt aus einem beliebigen SQL-Pool in diesem Abonnement zu nutzen, um einen vorherigen Zustand wiederherzustellen oder zu kopieren.
Typ: | SwitchParameter |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Name des Synapse SQL-Pools.
Typ: | String |
Aliases: | TargetSqlPoolName |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PerformanceLevel
Die SQL-Dienstebene und -Leistungsstufe, die dem SQL-Pool zugewiesen werden soll. Beispielsweise DW2000c.
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Ressourcengruppenname
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceId
Die Ressourcen-ID der Datenbank, die wiederhergestellt werden soll.
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RestorePoint
Momentaufnahmezeit zum Wiederherstellen.
Typ: | DateTime |
Aliases: | PointInTime |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageAccountType
Der Speicherkontotyp, der zum Speichern von Sicherungen für den SQL-Pool verwendet wird. Mögliche Werte sind: 'GRS', 'LRS'.
Typ: | String |
Zulässige Werte: | GRS, LRS |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Tag
Eine Zeichenfolge, ein Zeichenfolgenwörterbuch mit Tags, die der Ressource zugeordnet sind.
Typ: | Hashtable |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Zeigt, was geschieht, wenn das Cmdlet ausgeführt wird. Das Cmdlet wird nicht ausgeführt.
Typ: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Standardwert: | None |
Erforderlich: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WorkspaceName
Name des Synapse-Arbeitsbereichs.
Typ: | String |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WorkspaceObject
Arbeitsbereichseingabeobjekt, in der Regel durch die Pipeline übergeben.
Typ: | PSSynapseWorkspace |
Position: | Named |
Standardwert: | None |
Erforderlich: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Eingaben
Ausgaben
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Bald verfügbar: Im Laufe des Jahres 2024 werden wir GitHub-Issues stufenweise als Feedbackmechanismus für Inhalte abbauen und durch ein neues Feedbacksystem ersetzen. Weitere Informationen finden Sie unterFeedback senden und anzeigen für