PowershellでSQLDatabaseのリストア
AzurePowershellのクラシックモード版
メモとして残しておきます
まずはお決まりのやつ
Add-AzureAccount
Set-AzureSubscription -SubscriptionId "SubscriptionId"
データベース情報取得
$SourceServerName = "serverName"
$SourceDatabaseName = "DatabaseName"
$SourceDatabase = Get-AzureSqlDatabase -ServerName $SourceServerName -DatabaseName $SourceDatabaseName
復元後のデータベース名を決める
$TargetDatabaseName = "xxxx" + (Get-Date -Format "_yyyyMMdd")
リストア開始
Start-AzureSqlDatabaseRestore -SourceDatabase $SourceDatabase -TargetDatabaseName $TargetDatabaseName