次の方法で共有


User-defined restore points for a dedicated SQL pool (formerly SQL DW)

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.

  1. 開始する前に、必ず Azure PowerShell をインストールしてください。
  2. PowerShell を開きます。
  3. Azure アカウントに接続して、アカウントに関連付けられているすべてのサブスクリプションを一覧表示します。
  4. Select the subscription that contains the database to be restored.
  5. 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
  1. 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 を使用して作成することもできます。

  1. Azure portal アカウントにサインインします。

  2. Navigate to the dedicated SQL pool (formerly SQL DW) that you want to create a restore point for.

  3. 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.

    New Restore Point

  4. Specify a name for your user-defined restore point and click Apply. ユーザー定義の復元ポイントの既定の保有期間は 7 日間です。

    Name of Restore Point

次のステップ