Update-AzRecoveryServicesAsrPolicy

更新 Azure Site Recovery 複寫策略。

Syntax

Update-AzRecoveryServicesAsrPolicy
      -InputObject <ASRPolicy>
      [-ReplicationMethod <String>]
      [-ReplicationFrequencyInSeconds <String>]
      [-NumberOfRecoveryPointsToRetain <Int32>]
      [-ApplicationConsistentSnapshotFrequencyInHours <Int32>]
      [-Compression <String>]
      [-ReplicationPort <UInt16>]
      [-Authentication <String>]
      [-ReplicationStartTime <TimeSpan>]
      [-ReplicaDeletion <String>]
      [-RecoveryAzureStorageAccountId <String>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzRecoveryServicesAsrPolicy
      [-VMwareToAzure]
      -InputObject <ASRPolicy>
      [-RecoveryPointRetentionInHours <Int32>]
      [-ApplicationConsistentSnapshotFrequencyInHours <Int32>]
      [-MultiVmSyncStatus <String>]
      [-RPOWarningThresholdInMinutes <Int32>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzRecoveryServicesAsrPolicy
      [-AzureToAzure]
      -InputObject <ASRPolicy>
      [-RecoveryPointRetentionInHours <Int32>]
      [-ApplicationConsistentSnapshotFrequencyInHours <Int32>]
      [-MultiVmSyncStatus <String>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzRecoveryServicesAsrPolicy
      [-AzureToVMware]
      -InputObject <ASRPolicy>
      [-RecoveryPointRetentionInHours <Int32>]
      [-ApplicationConsistentSnapshotFrequencyInHours <Int32>]
      [-MultiVmSyncStatus <String>]
      [-RPOWarningThresholdInMinutes <Int32>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzRecoveryServicesAsrPolicy
      [-HyperVToAzure]
      -InputObject <ASRPolicy>
      [-ReplicationFrequencyInSeconds <String>]
      [-NumberOfRecoveryPointsToRetain <Int32>]
      [-ApplicationConsistentSnapshotFrequencyInHours <Int32>]
      [-ReplicationStartTime <TimeSpan>]
      [-RecoveryAzureStorageAccountId <String>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzRecoveryServicesAsrPolicy
      [-VmmToVmm]
      -InputObject <ASRPolicy>
      [-ReplicationMethod <String>]
      [-ReplicationFrequencyInSeconds <String>]
      [-NumberOfRecoveryPointsToRetain <Int32>]
      [-ApplicationConsistentSnapshotFrequencyInHours <Int32>]
      [-Compression <String>]
      [-ReplicationPort <UInt16>]
      [-Authentication <String>]
      [-ReplicationStartTime <TimeSpan>]
      [-ReplicaDeletion <String>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-AzRecoveryServicesAsrPolicy
      [-ReplicateVMwareToAzure]
      -InputObject <ASRPolicy>
      [-RecoveryPointRetentionInHours <Int32>]
      [-ApplicationConsistentSnapshotFrequencyInHours <Int32>]
      [-MultiVmSyncStatus <String>]
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Update-AzRecoveryServicesAsrPolicy Cmdlet 會更新指定的 Azure Site Recovery 複寫策略。

範例

範例 1

$currentJob = Update-AzRecoveryServicesAsrPolicy -Policy $Policy -ReplicationFrequencyInSeconds 900

使用指定的參數啟動更新複寫策略作業,並傳回用來追蹤作業的 ASR 作業。

範例 2

$currentJob = Update-AzRecoveryServicesAsrPolicy -AzureToAzure -InputObject $Policy -RecoveryPointRetentionInHours 20

使用指定的參數啟動 azure 至 Azure 複寫策略的更新,並傳回用來追蹤作業的 ASR 作業。

參數

-ApplicationConsistentSnapshotFrequencyInHours

指定要建立應用程式一致恢復點的頻率(以小時為單位)。

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Authentication

指定所使用的驗證類型。

Type:String
Accepted values:Certificate, Kerberos
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AzureToAzure

指定 Azure 至 Azure 災害復原。

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-AzureToVMware

指定 Azure 至 vMWare 災害復原。

Type:SwitchParameter
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Compression

指定是否應該啟用壓縮。

Type:String
Accepted values:Enable, Disable
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

執行 Cmdlet 之前先提示您確認。

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-HyperVToAzure

Switch 參數,指出指定的原則是用來將 Hyper-V 虛擬機複寫至 Azure。

Type:SwitchParameter
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Cmdlet 的輸入物件:指定要更新之複製策略對應的 ASR 複製策略物件。

Type:ASRPolicy
Aliases:Policy
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-MultiVmSyncStatus

指定原則的 multiVm 同步處理狀態。

Type:String
Accepted values:Enable, Disable
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NumberOfRecoveryPointsToRetain

指定要保留的數字恢復點。

Type:Int32
Aliases:RecoveryPoints
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RecoveryAzureStorageAccountId

指定複寫目標的 Azure 記憶體帳戶識別碼。 如果使用 New-AzRecoveryServicesASRReplicationProtectedItem Cmdlet 來啟用復寫,則當做複寫的目標記憶體帳戶。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RecoveryPointRetentionInHours

建立後保留恢復點的時數小時。

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ReplicaDeletion

指定是否應該刪除複本虛擬機,以停用 VMM 受控月臺至另一個月臺的複寫。

Type:String
Accepted values:Required, NotRequired
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ReplicateVMwareToAzure

切換參數,指定 VMware 至 Azure 複寫案例。

Type:SwitchParameter
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ReplicationFrequencyInSeconds

指定以秒為單位的復寫頻率間隔。 有效值為:

  • 30
  • 300
  • 900
Type:String
Accepted values:30, 300, 900
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ReplicationMethod

指定複寫方法。

Type:String
Accepted values:Online, Offline
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ReplicationPort

指定用於復寫的埠。

Type:UInt16
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ReplicationStartTime

指定複寫開始時間。 必須不晚於作業開始的 24 小時。

Type:Nullable<T>[TimeSpan]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RPOWarningThresholdInMinutes

要警告的 RPO 臨界值,以分鐘為單位。

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VmmToVmm

Switch 參數,指出指定的原則是用來在兩個 Hyper-V 月台之間復寫 VMM 管理的 Hyper-V 虛擬機。

Type:SwitchParameter
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-VMwareToAzure

Switch 參數,指出指定的原則是用來將 VMware 虛擬機複寫至 Azure。

Type:SwitchParameter
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

輸入

ASRPolicy

輸出

ASRJob