Restore-ASDatabase

從備份檔還原指定的 Analysis Service 資料庫。

語法

Restore-ASDatabase
       [-RestoreFile] <String>
       [-Name] <String>
       [-AllowOverwrite]
       [-Security <RestoreSecurity>]
       [-Password <SecureString>]
       [-StorageLocation <String>]
       [-Locations <RestoreLocation[]>]
       [-Server <String>]
       [-Credential <PSCredential>]
       [-ServicePrincipal]
       [-ApplicationId <String>]
       [-TenantId <String>]
       [-CertificateThumbprint <String>]
       [-ProgressAction <ActionPreference>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
Restore-ASDatabase
       [-Server <String>]
       [-Credential <PSCredential>]
       [-ServicePrincipal]
       [-ApplicationId <String>]
       [-TenantId <String>]
       [-CertificateThumbprint <String>]
       [-ProgressAction <ActionPreference>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
Restore-ASDatabase
       [-Server <String>]
       [-Credential <PSCredential>]
       [-ServicePrincipal]
       [-ApplicationId <String>]
       [-TenantId <String>]
       [-CertificateThumbprint <String>]
       [-ProgressAction <ActionPreference>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
Restore-ASDatabase
       [-Server <String>]
       [-Credential <PSCredential>]
       [-ServicePrincipal]
       [-ApplicationId <String>]
       [-TenantId <String>]
       [-CertificateThumbprint <String>]
       [-ProgressAction <ActionPreference>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

可讓資料庫管理員從備份檔還原 Analysis Service 資料庫。 如果只提及沒有位置的備份檔名,則會考慮安裝期間指定的預設備份位置。

Module requirements: version 21+ on PowerShell 5.1; version 21 (recent preview) or version 22+ on PowerShell 7.x.

參數

-AllowOverwrite

指出是否可以在還原期間覆寫目的地檔案。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ApplicationId

服務主體的應用程式識別碼。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-CertificateThumbprint

服務主體的憑證指紋。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Confirm

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

類型:SwitchParameter
別名:cf
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Credential

如果指定此參數,傳遞的使用者名稱和密碼將用來連線到指定的 Analysis Server 實例。 如果未指定任何認證,則會使用執行此工具之用戶的預設 Windows 帳戶。

類型:PSCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Locations

要還原之數據分割的遠端位置。

類型:RestoreLocation[]
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

必須還原的 Analysis Services 資料庫名稱。

類型:String
Position:1
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Password

用來解密還原檔案的密碼。

類型:SecureString
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ProgressAction

決定 PowerShell 如何回應腳本、Cmdlet 或提供者所產生的進度更新,例如 Write-Progress Cmdlet 所產生的進度列。 Write-Progress Cmdlet 會建立顯示命令狀態的進度列。

類型:ActionPreference
別名:proga
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-RestoreFile

從備份檔還原指定的 Analysis Service 資料庫。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-Security

表示還原作業的安全性設定。

類型:RestoreSecurity
接受的值:CopyAll, SkipMembership, IgnoreSecurity
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Server

選擇性地指定要連接到的伺服器實例,如果目前不在 SQLAS 提供者目錄中。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ServicePrincipal

指定此連線使用服務主體。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-StorageLocation

資料庫儲存位置。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-TenantId

服務主體的租用戶標識碼。

類型:String
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-WhatIf

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

類型:SwitchParameter
別名:wi
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

輸入

System.String

備註

PowerBI Premium 產品目前不支援的所有 Analysis Services 實例支援。 未來將受到支援。