New-​Azure​Rm​Site​Recovery​Policy

Creates a Site Recovery replication policy.

Syntax

New-AzureRmSiteRecoveryPolicy
   -Name <String>
   -ReplicationProvider <String>
   -ReplicationFrequencyInSeconds <String>
   [-RecoveryPoints <Int32>]
   [-ApplicationConsistentSnapshotFrequencyInHours <Int32>]
   [-ReplicationStartTime <TimeSpan>]
   [-RecoveryAzureStorageAccountId <String>]
   [-Encryption <String>]
   [<CommonParameters>]
New-AzureRmSiteRecoveryPolicy
   -Name <String>
   -ReplicationProvider <String>
   -ReplicationFrequencyInSeconds <String>
   [-RecoveryPoints <Int32>]
   [-ApplicationConsistentSnapshotFrequencyInHours <Int32>]
   [-ReplicationStartTime <TimeSpan>]
   [-ReplicationMethod <String>]
   [-Compression <String>]
   -ReplicationPort <UInt16>
   [-Authentication <String>]
   [-ReplicaDeletion <String>]
   [<CommonParameters>]

Description

The New-AzureRmSiteRecoveryPolicy cmdlet creates an Azure Site Recovery replication policy. The replication policy is used to specify replication settings such as the replication frequency and number of recovery points.

Required Parameters

-Name

Specifies a friendly name which identifies the Site Recovery replication policy.

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

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

  • 300
  • 900
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ReplicationPort

Specifies the port used for replication.

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

Specifies the replication provider. Valid values are:- HyperVReplica2012R2

  • HyperVReplica2012
  • HyperVReplicaAzure
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-ApplicationConsistentSnapshotFrequencyInHours

Specifies the frequency of the application consistent snapshot in hours.

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

Specifies the type of authentication used. Valid values are:- Certificate

  • Kerberos
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Compression
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Encryption
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecoveryAzureStorageAccountId

Specifies the Azure storage account ID of the replication target.

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

Specifies the number of hours to retain recovery points.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ReplicaDeletion
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ReplicationMethod

Specifies the replication method. Valid values are:- Online

  • Offline
Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ReplicationStartTime

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

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