< Back

Update-AzureRmRecoveryServicesAsrPolicy

Tue Jan 29, 2019 10:03 pm

NAME Update-AzureRmRecoveryServicesAsrPolicy



SYNOPSIS

Updates an Azure Site Recovery replication policy.





SYNTAX

Update-AzureRmRecoveryServicesAsrPolicy [-ApplicationConsistentSnapshotFrequencyInHours <Int32>] [-Authentication {Certificate | Kerberos}]

[-Compression {Enable | Disable}] [-Confirm] [-DefaultProfile <IAzureContextContainer>] [-Encryption {Enable | Disable}] -InputObject <ASRPolicy>

[-NumberOfRecoveryPointsToRetain <Int32>] [-RecoveryAzureStorageAccountId <String>] [-ReplicaDeletion {Required | NotRequired}]

[-ReplicationFrequencyInSeconds {30 | 300 | 900}] [-ReplicationMethod {Online | Offline}] [-ReplicationPort <UInt16>] [-ReplicationStartTime

<TimeSpan>] [-WhatIf] [<CommonParameters>]



Update-AzureRmRecoveryServicesAsrPolicy [-VmmToVmm] [-ApplicationConsistentSnapshotFrequencyInHours <Int32>] [-Authentication {Certificate |

Kerberos}] [-Compression {Enable | Disable}] [-Confirm] [-DefaultProfile <IAzureContextContainer>] -InputObject <ASRPolicy>

[-NumberOfRecoveryPointsToRetain <Int32>] [-ReplicaDeletion {Required | NotRequired}] [-ReplicationFrequencyInSeconds {30 | 300 | 900}]

[-ReplicationMethod {Online | Offline}] [-ReplicationPort <UInt16>] [-ReplicationStartTime <TimeSpan>] [-WhatIf] [<CommonParameters>]



Update-AzureRmRecoveryServicesAsrPolicy [-ApplicationConsistentSnapshotFrequencyInHours <Int32>] -AzureToAzure [-Confirm] [-DefaultProfile

<IAzureContextContainer>] -InputObject <ASRPolicy> [-MultiVmSyncStatus {Enable | Disable}] [-RecoveryPointRetentionInHours <Int32>] [-WhatIf]

[<CommonParameters>]



Update-AzureRmRecoveryServicesAsrPolicy [-AzureToVMware] [-ApplicationConsistentSnapshotFrequencyInHours <Int32>] [-Confirm] [-DefaultProfile

<IAzureContextContainer>] -InputObject <ASRPolicy> [-MultiVmSyncStatus {Enable | Disable}] [-RPOWarningThresholdInMinutes <Int32>]

[-RecoveryPointRetentionInHours <Int32>] [-WhatIf] [<CommonParameters>]



Update-AzureRmRecoveryServicesAsrPolicy [-HyperVToAzure] [-ApplicationConsistentSnapshotFrequencyInHours <Int32>] [-Confirm] [-DefaultProfile

<IAzureContextContainer>] [-Encryption {Enable | Disable}] -InputObject <ASRPolicy> [-NumberOfRecoveryPointsToRetain <Int32>]

[-RecoveryAzureStorageAccountId <String>] [-ReplicationFrequencyInSeconds {30 | 300 | 900}] [-ReplicationStartTime <TimeSpan>] [-WhatIf]

[<CommonParameters>]



Update-AzureRmRecoveryServicesAsrPolicy [-VMwareToAzure] [-ApplicationConsistentSnapshotFrequencyInHours <Int32>] [-Confirm] [-DefaultProfile

<IAzureContextContainer>] -InputObject <ASRPolicy> [-MultiVmSyncStatus {Enable | Disable}] [-RPOWarningThresholdInMinutes <Int32>]

[-RecoveryPointRetentionInHours <Int32>] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The Update-AzureRmRecoveryServicesAsrPolicy cmdlet updates the specified Azure Site Recovery replication policy.





PARAMETERS

-ApplicationConsistentSnapshotFrequencyInHours <Int32>

Specifies the frequency(in hours) at which to create application consistent recovery points.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Authentication <String>

Specifies the type of authentication used.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-AzureToAzure [<SwitchParameter>]

Switch parameter specifying that the replication policy used to replicate Azure virtual machines between two Azure regions will be updated.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-AzureToVMware [<SwitchParameter>]

Switch parameter indicating that the specfied policy is used to replicate failed over virtual machines running in Azure back to an on-premises

VMware site.



Required? true

Position? 0

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Compression <String>

Specifies if compression should be enabled.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with Azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Encryption <String>

Specifies if encryption should be enabled or disabled.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-HyperVToAzure [<SwitchParameter>]

Switch parameter indicating that the specfied policy is used to replicate Hyper-V virtual machines to Azure.



Required? true

Position? 0

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-InputObject <ASRPolicy>

Input object for the cmdlet: Specifies the ASR replication policy object corresponding to the replication policy to be updated.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-MultiVmSyncStatus <String>

Specifies multiVm sync status for the policy.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-NumberOfRecoveryPointsToRetain <Int32>

Specifies the number recovery points to retain.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RPOWarningThresholdInMinutes <Int32>

The RPO threshold value in minutes to warn on.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RecoveryAzureStorageAccountId <String>

Specifies the Azure storage account ID of the replication target. Used as the target storage account for replication if an alternate is not

provided while enabling replication using the New-AzureRmRecoveryServicesASRReplicationProtectedItem cmdlet.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RecoveryPointRetentionInHours <Int32>

Time in hours to retain recovery points after creation.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ReplicaDeletion <String>

Specifies if the replica virtual machine should be deleted on disabling replication from a VMM managed site to another.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ReplicationFrequencyInSeconds <String>

Specifies the replication frequency interval in seconds. Valid values are:



- 30



- 300



- 900



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ReplicationMethod <String>

Specifies the replication method.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ReplicationPort <UInt16>

Specifies the port used for replication.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ReplicationStartTime <TimeSpan>

Specifies the replication start time. It must be no later than 24-hours from the start of the job.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-VMwareToAzure [<SwitchParameter>]

Switch parameter indicating that the specfied policy is used to replicate VMware virtual machines to Azure.



Required? true

Position? 0

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-VmmToVmm [<SwitchParameter>]

Switch parameter indicating that the specfied policy is used to replicate VMM managed Hyper-V virtual machines between two Hyper-V sites.



Required? true

Position? 0

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRPolicy







OUTPUTS

System.Object







NOTES









Example 1



PS C:\\> $currentJob = Update-AzureRmRecoveryServicesAsrPolicy -Policy $Policy -ReplicationFrequencyInSeconds 900



Starts the update replication policy operation using the specified parameters and returns the ASR job used to track the operation.





Example 2



PS C:\\> Update-AzureRmRecoveryServicesAsrPolicy -AzureToAzure -InputObject $Policy -ReplicationFrequencyInSeconds 900



Starts the update azure to azure replication policy operation using the specified parameters and returns the ASR job used to track the operation.





Example 3



PS C:\\> $currentJob = Update-AzureRmRecoveryServicesAsrPolicy -AzureToAzure -InputObject $Policy -RecoveryPointRetentionInHours 20



Starts the update azure to azure replication policy using the specified parameters and returns the ASR job used to track the operation.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... sasrpolicy