共用方式為


Restore-AzSqlDatabase

還原 SQL 資料庫。

語法

FromPointInTimeBackup

Restore-AzSqlDatabase
    [-ResourceGroupName] <String>
    -PointInTime <DateTime>
    -ResourceId <String>
    -ServerName <String>
    -TargetDatabaseName <String>
    [-FromPointInTimeBackup]
    [-Edition <String>]
    [-ServiceObjectiveName <String>]
    [-ElasticPoolName <String>]
    [-AsJob]
    [-LicenseType <String>]
    [-HAReplicaCount <Int32>]
    [-BackupStorageRedundancy <String>]
    [-ZoneRedundant]
    [-Tag <Hashtable>]
    [-AssignIdentity]
    [-EncryptionProtector <String>]
    [-UserAssignedIdentityId <String[]>]
    [-KeyList <String[]>]
    [-FederatedClientId <Guid>]
    [-EncryptionProtectorAutoRotation]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

FromPointInTimeBackupWithVcore

Restore-AzSqlDatabase
    [-ResourceGroupName] <String>
    -PointInTime <DateTime>
    -ResourceId <String>
    -ServerName <String>
    -TargetDatabaseName <String>
    -Edition <String>
    -ComputeGeneration <String>
    -VCore <Int32>
    [-FromPointInTimeBackup]
    [-AsJob]
    [-LicenseType <String>]
    [-HAReplicaCount <Int32>]
    [-BackupStorageRedundancy <String>]
    [-ZoneRedundant]
    [-Tag <Hashtable>]
    [-AssignIdentity]
    [-EncryptionProtector <String>]
    [-UserAssignedIdentityId <String[]>]
    [-KeyList <String[]>]
    [-FederatedClientId <Guid>]
    [-EncryptionProtectorAutoRotation]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

FromDeletedDatabaseBackup

Restore-AzSqlDatabase
    [-ResourceGroupName] <String>
    -DeletionDate <DateTime>
    -ResourceId <String>
    -ServerName <String>
    -TargetDatabaseName <String>
    [-FromDeletedDatabaseBackup]
    [-PointInTime <DateTime>]
    [-Edition <String>]
    [-ServiceObjectiveName <String>]
    [-ElasticPoolName <String>]
    [-AsJob]
    [-LicenseType <String>]
    [-HAReplicaCount <Int32>]
    [-BackupStorageRedundancy <String>]
    [-ZoneRedundant]
    [-Tag <Hashtable>]
    [-AssignIdentity]
    [-EncryptionProtector <String>]
    [-UserAssignedIdentityId <String[]>]
    [-KeyList <String[]>]
    [-FederatedClientId <Guid>]
    [-EncryptionProtectorAutoRotation]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

FromDeletedDatabaseBackupWithVcore

Restore-AzSqlDatabase
    [-ResourceGroupName] <String>
    -DeletionDate <DateTime>
    -ResourceId <String>
    -ServerName <String>
    -TargetDatabaseName <String>
    -Edition <String>
    -ComputeGeneration <String>
    -VCore <Int32>
    [-FromDeletedDatabaseBackup]
    [-PointInTime <DateTime>]
    [-AsJob]
    [-LicenseType <String>]
    [-HAReplicaCount <Int32>]
    [-BackupStorageRedundancy <String>]
    [-ZoneRedundant]
    [-Tag <Hashtable>]
    [-AssignIdentity]
    [-EncryptionProtector <String>]
    [-UserAssignedIdentityId <String[]>]
    [-KeyList <String[]>]
    [-FederatedClientId <Guid>]
    [-EncryptionProtectorAutoRotation]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

FromGeoBackup

Restore-AzSqlDatabase
    [-ResourceGroupName] <String>
    -ResourceId <String>
    -ServerName <String>
    -TargetDatabaseName <String>
    [-FromGeoBackup]
    [-Edition <String>]
    [-ServiceObjectiveName <String>]
    [-ElasticPoolName <String>]
    [-AsJob]
    [-LicenseType <String>]
    [-HAReplicaCount <Int32>]
    [-BackupStorageRedundancy <String>]
    [-ZoneRedundant]
    [-Tag <Hashtable>]
    [-AssignIdentity]
    [-EncryptionProtector <String>]
    [-UserAssignedIdentityId <String[]>]
    [-KeyList <String[]>]
    [-FederatedClientId <Guid>]
    [-EncryptionProtectorAutoRotation]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

FromGeoBackupWithVcore

Restore-AzSqlDatabase
    [-ResourceGroupName] <String>
    -ResourceId <String>
    -ServerName <String>
    -TargetDatabaseName <String>
    -Edition <String>
    -ComputeGeneration <String>
    -VCore <Int32>
    [-FromGeoBackup]
    [-AsJob]
    [-LicenseType <String>]
    [-HAReplicaCount <Int32>]
    [-BackupStorageRedundancy <String>]
    [-ZoneRedundant]
    [-Tag <Hashtable>]
    [-AssignIdentity]
    [-EncryptionProtector <String>]
    [-UserAssignedIdentityId <String[]>]
    [-KeyList <String[]>]
    [-FederatedClientId <Guid>]
    [-EncryptionProtectorAutoRotation]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

FromLongTermRetentionBackup

Restore-AzSqlDatabase
    [-ResourceGroupName] <String>
    -ResourceId <String>
    -ServerName <String>
    -TargetDatabaseName <String>
    [-FromLongTermRetentionBackup]
    [-Edition <String>]
    [-ServiceObjectiveName <String>]
    [-ElasticPoolName <String>]
    [-AsJob]
    [-LicenseType <String>]
    [-HAReplicaCount <Int32>]
    [-BackupStorageRedundancy <String>]
    [-ZoneRedundant]
    [-Tag <Hashtable>]
    [-AssignIdentity]
    [-EncryptionProtector <String>]
    [-UserAssignedIdentityId <String[]>]
    [-KeyList <String[]>]
    [-FederatedClientId <Guid>]
    [-EncryptionProtectorAutoRotation]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

FromLongTermRetentionBackupWithVcore

Restore-AzSqlDatabase
    [-ResourceGroupName] <String>
    -ResourceId <String>
    -ServerName <String>
    -TargetDatabaseName <String>
    -Edition <String>
    -ComputeGeneration <String>
    -VCore <Int32>
    [-FromLongTermRetentionBackup]
    [-AsJob]
    [-LicenseType <String>]
    [-HAReplicaCount <Int32>]
    [-BackupStorageRedundancy <String>]
    [-ZoneRedundant]
    [-Tag <Hashtable>]
    [-AssignIdentity]
    [-EncryptionProtector <String>]
    [-UserAssignedIdentityId <String[]>]
    [-KeyList <String[]>]
    [-FederatedClientId <Guid>]
    [-EncryptionProtectorAutoRotation]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Restore-AzSqlDatabase Cmdlet 會從異地備援備份、已刪除資料庫的備份、長期保留備份或即時資料庫中的時間點還原 SQL 資料庫。 還原的資料庫會建立為新資料庫。 您可以將 ElasticPoolName 參數設定為現有的彈性集區,以建立彈性 SQL 資料庫。 您也可以對資料倉儲資料庫執行跨訂用帳戶還原。

範例

範例 1:從某個時間點還原資料庫

$Database = Get-AzSqlDatabase -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01"
Restore-AzSqlDatabase -FromPointInTimeBackup -PointInTime UTCDateTime -ResourceGroupName $Database.ResourceGroupName -ServerName $Database.ServerName -TargetDatabaseName "RestoredDatabase" -ResourceId $Database.ResourceID -Edition "Standard" -ServiceObjectiveName "S2"

第一個命令會取得名為 Database01 的 SQL 資料庫,然後將它儲存在 $Database 變數中。 第二個命令會將資料庫從指定的時間點備份還原至名為 RestoredDatabase 的資料庫,$Database。

範例 2:將資料庫從某個時間點還原至彈性集區

$Database = Get-AzSqlDatabase -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01"
Restore-AzSqlDatabase -FromPointInTimeBackup -PointInTime UTCDateTime -ResourceGroupName $Database.ResourceGroupName -ServerName $Database.ServerName -TargetDatabaseName "RestoredDatabase" -ResourceId $Database.ResourceID -ElasticPoolName "ElasticPool01"

第一個命令會取得名為 Database01 的 SQL 資料庫,然後將它儲存在 $Database 變數中。 第二個命令會將$Database資料庫從指定的時間點備份還原至名為 elasticpool01 的彈性集區中名為 RestoredDatabase 的 SQL 資料庫。

範例 3:還原已刪除的資料庫

$DeletedDatabase = Get-AzSqlDeletedDatabaseBackup -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01"
Restore-AzSqlDatabase -FromDeletedDatabaseBackup -DeletionDate $DeletedDatabase.DeletionDate -ResourceGroupName $DeletedDatabase.ResourceGroupName -ServerName $DeletedDatabase.ServerName -TargetDatabaseName "RestoredDatabase" -ResourceId $DeletedDatabase.ResourceID -Edition "Standard" -ServiceObjectiveName "S2" -PointInTime UTCDateTime

第一個命令會使用 Get-AzSqlDeletedDatabaseBackup 取得您想要還原的已刪除資料庫備份。 第二個命令會使用 Restore-AzSqlDatabase Cmdlet 從已刪除的資料庫備份開始還原。 如果未指定 -PointInTime 參數,則資料庫將恢復到刪除時間。

範例 4:將已刪除的資料庫還原至彈性集區

$DeletedDatabase = Get-AzSqlDeletedDatabaseBackup -ResourceGroupName $resourceGroupName -ServerName $sqlServerName -DatabaseName 'DatabaseToRestore'
Restore-AzSqlDatabase -FromDeletedDatabaseBackup -DeletionDate $DeletedDatabase.DeletionDate -ResourceGroupName $DeletedDatabase.ResourceGroupName -ServerName $DeletedDatabase.ServerName -TargetDatabaseName "RestoredDatabase" -ResourceId $DeletedDatabase.ResourceID -ElasticPoolName "elasticpool01" -PointInTime UTCDateTime

第一個命令會使用 Get-AzSqlDeletedDatabaseBackup 取得您想要還原的已刪除資料庫備份。 第二個命令會使用 Restore-AzSqlDatabase 從已刪除的資料庫備份開始還原。 如果未指定 -PointInTime 參數,則資料庫將恢復到刪除時間。

範例 5:Geo-Restore 資料庫

$GeoBackup = Get-AzSqlDatabaseGeoBackup -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01"
Restore-AzSqlDatabase -FromGeoBackup -ResourceGroupName "TargetResourceGroup" -ServerName "TargetServer" -TargetDatabaseName "RestoredDatabase" -ResourceId $GeoBackup.ResourceID -Edition "Standard" -ServiceObjectiveName "S2"

第一個命令會取得名為 Database01 之資料庫的異地備援備份,然後將它儲存在 $GeoBackup 變數中。 第二個命令會將備份還原至名為 RestoredDatabase 的 SQL 資料庫,以$GeoBackup還原。

參數

-AsJob

在背景執行 Cmdlet

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-AssignIdentity

產生並指派此資料庫的 Microsoft Entra 身分識別,以與 Azure KeyVault 等金鑰管理服務搭配使用。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-BackupStorageRedundancy

用來儲存 SQL 資料庫備份的備份儲存備援。 選項包括:Local、Zone、Geo 和 GeoZone。

參數屬性

類型:String
預設值:None
接受的值:Local, Zone, Geo, GeoZone
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ComputeGeneration

要指派給還原資料庫的計算產生

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False
別名:家庭

參數集

FromPointInTimeBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromDeletedDatabaseBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromGeoBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromLongTermRetentionBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-Confirm

在執行 Cmdlet 之前,提示您進行確認。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False
別名:參見

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-DefaultProfile

用來與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶

參數屬性

類型:IAzureContextContainer
預設值:None
支援萬用字元:False
不要顯示:False
別名:AzContext, AzureRmContext, AzureCredential

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-DeletionDate

將刪除日期指定為 DateTime 物件。 若要取得 DateTime 物件,請使用 Get-Date Cmdlet。

參數屬性

類型:DateTime
預設值:None
支援萬用字元:False
不要顯示:False

參數集

FromDeletedDatabaseBackup
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False
FromDeletedDatabaseBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-Edition

指定 SQL 資料庫的版本。 此參數可接受的值為:

  • None
  • 基本
  • 標準
  • 進階
  • 資料倉儲
  • 免費
  • Stretch
  • 通用目的
  • 關鍵業務

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

FromPointInTimeBackup
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromDeletedDatabaseBackup
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromGeoBackup
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromLongTermRetentionBackup
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ElasticPoolName

指定要放置 SQL 資料庫的彈性集區名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

FromPointInTimeBackup
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False
FromDeletedDatabaseBackup
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False
FromGeoBackup
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False
FromLongTermRetentionBackup
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-EncryptionProtector

SQL Database 的加密保護程式金鑰。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-EncryptionProtectorAutoRotation

AKV 鑰匙自動旋轉狀態

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-FederatedClientId

SQL Database 的同盟用戶端標識碼。 它用於跨租使用者 CMK 案例。

參數屬性

類型:

Nullable<T>[Guid]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-FromDeletedDatabaseBackup

表示此 Cmdlet 會從已刪除 SQL 資料庫的備份還原資料庫。 您可以使用 Get-AzSqlDeletedDatabaseBackup Cmdlet 來取得已刪除 SQL 資料庫的備份。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

FromDeletedDatabaseBackup
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromDeletedDatabaseBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-FromGeoBackup

表示此 Cmdlet 會從異地備援備份還原 SQL 資料庫。 您可以使用 Get-AzSqlDatabaseGeoBackup Cmdlet 來取得異地備援備份。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

FromGeoBackup
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromGeoBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-FromLongTermRetentionBackup

表示此 Cmdlet 會從長期保留備份還原 SQL 資料庫。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

FromLongTermRetentionBackup
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromLongTermRetentionBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-FromPointInTimeBackup

表示此 Cmdlet 會從時間點備份還原 SQL 資料庫。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

FromPointInTimeBackup
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromPointInTimeBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-HAReplicaCount

用來儲存 SQL 資料庫備份的 HA 複本計數。

參數屬性

類型:Int32
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-KeyList

SQL Database 的 AKV 金鑰清單。

參數屬性

類型:

String[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-LicenseType

Azure Sql 資料庫的授權類型。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-PointInTime

指定您要還原 SQL 資料庫的時間點 ( 作為 DateTime 物件)。 若要取得 DateTime 物件,請使用 Get-Date Cmdlet。 將此參數與 FromPointInTimeBackup 參數一起使用。

參數屬性

類型:DateTime
預設值:None
支援萬用字元:False
不要顯示:False

參數集

FromPointInTimeBackup
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromPointInTimeBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ResourceGroupName

指定此 Cmdlet 指派 SQL 資料庫的資源群組名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:0
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-ResourceId

指定要還原之資源識別碼。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False
別名:身份識別碼

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-ServerName

指定 SQL 資料庫伺服器的名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-ServiceObjectiveName

指定服務目標的名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

FromPointInTimeBackup
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False
FromDeletedDatabaseBackup
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False
FromGeoBackup
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False
FromLongTermRetentionBackup
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:True
來自剩餘引數的值:False

-Tag

要與 Azure SQL 資料庫相關聯的標籤

參數屬性

類型:Hashtable
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-TargetDatabaseName

指定要還原至的資料庫名稱。

參數屬性

類型:String
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-UserAssignedIdentityId

SQL Database 的使用者指派身分識別清單。

參數屬性

類型:

String[]

預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-VCore

還原 Azure SQL 資料庫的虛擬核心號碼。

參數屬性

類型:Int32
預設值:None
支援萬用字元:False
不要顯示:False
別名:容量

參數集

FromPointInTimeBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromDeletedDatabaseBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromGeoBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False
FromLongTermRetentionBackupWithVcore
Position:Named
必要:True
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-WhatIf

顯示 Cmdlet 執行時會發生什麼事。 指令未執行。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False
別名:威斯康辛

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

-ZoneRedundant

要與 Azure SQL 資料庫相關聯的區域備援。 此屬性僅適用於超大規模資料庫。

參數屬性

類型:SwitchParameter
預設值:None
支援萬用字元:False
不要顯示:False

參數集

(All)
Position:Named
必要:False
來自管線的值:False
來自管線按屬性名稱的值:False
來自剩餘引數的值:False

CommonParameters

此 cmdlet 支援常見參數:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters

輸入

DateTime

String

輸出

AzureSqlDatabaseModel