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

Creates a Site Recovery replication policy.

Syntax

New-AzureRmSiteRecoveryPolicy
   [-ApplicationConsistentSnapshotFrequencyInHours <Int32>]
   [-Authentication <String>]
   [-Compression <String>]
   -Name <String>
   [-RecoveryPoints <Int32>]
   [-ReplicaDeletion <String>]
   -ReplicationFrequencyInSeconds <String>
   [-ReplicationMethod <String>]
   -ReplicationPort <UInt16>
   -ReplicationProvider <String>
   [-ReplicationStartTime <TimeSpan>]
   [<CommonParameters>]
New-AzureRmSiteRecoveryPolicy
   [-ApplicationConsistentSnapshotFrequencyInHours <Int32>]
   [-Encryption <String>]
   -Name <String>
   [-RecoveryAzureStorageAccountId <String>]
   [-RecoveryPoints <Int32>]
   -ReplicationFrequencyInSeconds <String>
   -ReplicationProvider <String>
   [-ReplicationStartTime <TimeSpan>]
   [<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
Parameter Sets:30, 300, 900
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
Parameter Sets:HyperVReplica2012R2, HyperVReplica2012, HyperVReplicaAzure
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
Parameter Sets:Certificate, Kerberos
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Compression
Type:String
Parameter Sets:Enable, Disable
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Encryption
Type:String
Parameter Sets:Enable, Disable
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
Parameter Sets:Required, NotRequired
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
Parameter Sets:Online, Offline
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