Update-AzureSiteRecoveryRecoveryPlan
更新 Site Recovery 中的復原方案。
注意
本檔中參考的 Cmdlet 用於管理使用服務管理 API 的舊版 Azure 資源。 如需管理 Azure Resource Manager 資源的 Cmdlet,請參閱 Az PowerShell 模組 。
Syntax
Update-AzureSiteRecoveryRecoveryPlan
-File <String>
[-WaitForCompletion]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
Description
Update-AzureSiteRecoveryRecoveryPlan Cmdlet 會更新 Azure Site Recovery 中的復原方案,然後發佈它。
範例
範例 1:更新復原方案
PS C:\> Update-AzureSiteRecoveryRecoveryPlan -File "C:\Users\Contoso\Desktop\RecoveryPlan.xml"
此命令會更新指定的復原方案,然後發佈它。
參數
-File
指定此 Cmdlet 更新之復原計畫的復原計畫檔案。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Profile
指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設設定檔讀取。
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WaitForCompletion
表示 Cmdlet 會先等候作業完成,再將控制權傳回 Windows PowerShell 主控台。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |