In this article, you'll learn to create a new user-defined restore point for a dedicated SQL pool (formerly SQL DW) in Azure Synapse Analytics by using PowerShell and the Azure portal.
Create user-defined restore points through PowerShell
To create a user-defined restore point, use the New-AzSqlDatabaseRestorePoint PowerShell cmdlet.
- 開始する前に、必ず Azure PowerShell をインストールしてください。
- PowerShell を開きます。
- Azure アカウントに接続して、アカウントに関連付けられているすべてのサブスクリプションを一覧表示します。
- Select the subscription that contains the database to be restored.
- Create a restore point for an immediate copy of your data warehouse.
$SubscriptionName="<YourSubscriptionName>"
$ResourceGroupName="<YourResourceGroupName>"
$ServerName="<YourServerNameWithoutURLSuffixSeeNote>" # Without database.windows.net
$DatabaseName="<YourDatabaseName>"
$Label = "<YourRestorePointLabel>"
Connect-AzAccount
Get-AzSubscription
Set-AzContext -SubscriptionName $SubscriptionName
# Create a restore point of the original database
New-AzSqlDatabaseRestorePoint -ResourceGroupName $ResourceGroupName -ServerName $ServerName -DatabaseName $DatabaseName -RestorePointLabel $Label
- See the list of all the existing restore points.
# List all restore points
Get-AzSqlDatabaseRestorePoint -ResourceGroupName $ResourceGroupName -ServerName $ServerName -DatabaseName $DatabaseName
Azure portal を使用してユーザー定義の復元ポイントを作成する
ユーザー定義の復元ポイントは、Azure portal を使用して作成することもできます。
Azure portal アカウントにサインインします。
Navigate to the dedicated SQL pool (formerly SQL DW) that you want to create a restore point for.
Select Overview from the left pane, select + New Restore Point. If the New Restore Point button isn't enabled, make sure that the dedicated SQL pool (formerly SQL DW) isn't paused.
Specify a name for your user-defined restore point and click Apply. ユーザー定義の復元ポイントの既定の保有期間は 7 日間です。