The vaults/replicationPolicies resource type can be deployed to:
For a list of changed properties in each API version, see change log.
To create a Microsoft.RecoveryServices/vaults/replicationPolicies resource, add the following JSON to your template.
{
"type": "Microsoft.RecoveryServices/vaults/replicationPolicies",
"apiVersion": "2022-10-01",
"name": "string",
"properties": {
"providerSpecificInput": {
"instanceType": "string"
// For remaining properties, see PolicyProviderSpecificInput objects
}
}
}
Set the instanceType property to specify the type of object.
For A2A, use:
"instanceType": "A2A",
"appConsistentFrequencyInMinutes": "int",
"crashConsistentFrequencyInMinutes": "int",
"multiVmSyncStatus": "string",
"recoveryPointHistory": "int"
For A2ACrossClusterMigration, use:
"instanceType": "A2ACrossClusterMigration"
For HyperVReplica2012R2, use:
"instanceType": "HyperVReplica2012R2",
"allowedAuthenticationType": "int",
"applicationConsistentSnapshotFrequencyInHours": "int",
"compression": "string",
"initialReplicationMethod": "string",
"offlineReplicationExportPath": "string",
"offlineReplicationImportPath": "string",
"onlineReplicationStartTime": "string",
"recoveryPoints": "int",
"replicaDeletion": "string",
"replicationFrequencyInSeconds": "int",
"replicationPort": "int"
For HyperVReplicaAzure, use:
"instanceType": "HyperVReplicaAzure",
"applicationConsistentSnapshotFrequencyInHours": "int",
"onlineReplicationStartTime": "string",
"recoveryPointHistoryDuration": "int",
"replicationInterval": "int",
"storageAccounts": [ "string" ]
For InMage, use:
"instanceType": "InMage",
"appConsistentFrequencyInMinutes": "int",
"multiVmSyncStatus": "string",
"recoveryPointHistory": "int",
"recoveryPointThresholdInMinutes": "int"
For InMageAzureV2, use:
"instanceType": "InMageAzureV2",
"appConsistentFrequencyInMinutes": "int",
"crashConsistentFrequencyInMinutes": "int",
"multiVmSyncStatus": "string",
"recoveryPointHistory": "int",
"recoveryPointThresholdInMinutes": "int"
For InMageRcm, use:
"instanceType": "InMageRcm",
"appConsistentFrequencyInMinutes": "int",
"crashConsistentFrequencyInMinutes": "int",
"enableMultiVmSync": "string",
"recoveryPointHistoryInMinutes": "int"
For InMageRcmFailback, use:
"instanceType": "InMageRcmFailback",
"appConsistentFrequencyInMinutes": "int",
"crashConsistentFrequencyInMinutes": "int"
For VMwareCbt, use:
"instanceType": "VMwareCbt",
"appConsistentFrequencyInMinutes": "int",
"crashConsistentFrequencyInMinutes": "int",
"recoveryPointHistoryInMinutes": "int"
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.RecoveryServices/vaults/replicationPolicies' |
apiVersion | The resource api version | '2022-10-01' |
name | The resource name See how to set names and types for child resources in JSON ARM templates. |
string (required) |
properties | Policy creation properties. | CreatePolicyInputPropertiesOrPolicyProperties |
Name | Description | Value |
---|---|---|
providerSpecificInput | The ReplicationProviderSettings. | PolicyProviderSpecificInput |
Name | Description | Value |
---|---|---|
instanceType | Set the object type | A2A A2ACrossClusterMigration HyperVReplica2012R2 HyperVReplicaAzure InMage InMageAzureV2 InMageRcm InMageRcmFailback VMwareCbt (required) |
Name | Description | Value |
---|---|---|
instanceType | The class type. | 'A2A' (required) |
appConsistentFrequencyInMinutes | The app consistent snapshot frequency (in minutes). | int |
crashConsistentFrequencyInMinutes | The crash consistent snapshot frequency (in minutes). | int |
multiVmSyncStatus | A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'. | 'Disable' 'Enable' (required) |
recoveryPointHistory | The duration in minutes until which the recovery points need to be stored. | int |
Name | Description | Value |
---|---|---|
instanceType | The class type. | 'A2ACrossClusterMigration' (required) |
Name | Description | Value |
---|---|---|
instanceType | The class type. | 'HyperVReplica2012R2' (required) |
allowedAuthenticationType | A value indicating the authentication type. | int |
applicationConsistentSnapshotFrequencyInHours | A value indicating the application consistent frequency. | int |
compression | A value indicating whether compression has to be enabled. | string |
initialReplicationMethod | A value indicating whether IR is online. | string |
offlineReplicationExportPath | A value indicating the offline IR export path. | string |
offlineReplicationImportPath | A value indicating the offline IR import path. | string |
onlineReplicationStartTime | A value indicating the online IR start time. | string |
recoveryPoints | A value indicating the number of recovery points. | int |
replicaDeletion | A value indicating whether the VM has to be auto deleted. | string |
replicationFrequencyInSeconds | A value indicating the replication interval. | int |
replicationPort | A value indicating the recovery HTTPS port. | int |
Name | Description | Value |
---|---|---|
instanceType | The class type. | 'HyperVReplicaAzure' (required) |
applicationConsistentSnapshotFrequencyInHours | The interval (in hours) at which Hyper-V Replica should create an application consistent snapshot within the VM. | int |
onlineReplicationStartTime | The scheduled start time for the initial replication. If this parameter is Null, the initial replication starts immediately. | string |
recoveryPointHistoryDuration | The duration (in hours) to which point the recovery history needs to be maintained. | int |
replicationInterval | The replication interval. | int |
storageAccounts | The list of storage accounts to which the VMs in the primary cloud can replicate to. | string[] |
Name | Description | Value |
---|---|---|
instanceType | The class type. | 'InMage' (required) |
appConsistentFrequencyInMinutes | The app consistent snapshot frequency (in minutes). | int |
multiVmSyncStatus | A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'. | 'Disable' 'Enable' (required) |
recoveryPointHistory | The duration in minutes until which the recovery points need to be stored. | int |
recoveryPointThresholdInMinutes | The recovery point threshold in minutes. | int |
Name | Description | Value |
---|---|---|
instanceType | The class type. | 'InMageAzureV2' (required) |
appConsistentFrequencyInMinutes | The app consistent snapshot frequency (in minutes). | int |
crashConsistentFrequencyInMinutes | The crash consistent snapshot frequency (in minutes). | int |
multiVmSyncStatus | A value indicating whether multi-VM sync has to be enabled. Value should be 'Enabled' or 'Disabled'. | 'Disable' 'Enable' (required) |
recoveryPointHistory | The duration in minutes until which the recovery points need to be stored. | int |
recoveryPointThresholdInMinutes | The recovery point threshold in minutes. | int |
Name | Description | Value |
---|---|---|
instanceType | The class type. | 'InMageRcm' (required) |
appConsistentFrequencyInMinutes | The app consistent snapshot frequency (in minutes). | int |
crashConsistentFrequencyInMinutes | The crash consistent snapshot frequency (in minutes). | int |
enableMultiVmSync | A value indicating whether multi-VM sync has to be enabled. | string |
recoveryPointHistoryInMinutes | The duration in minutes until which the recovery points need to be stored. | int |
Name | Description | Value |
---|---|---|
instanceType | The class type. | 'InMageRcmFailback' (required) |
appConsistentFrequencyInMinutes | The app consistent snapshot frequency (in minutes). | int |
crashConsistentFrequencyInMinutes | The crash consistent snapshot frequency (in minutes). | int |
Name | Description | Value |
---|---|---|
instanceType | The class type. | 'VMwareCbt' (required) |
appConsistentFrequencyInMinutes | The app consistent snapshot frequency (in minutes). | int |
crashConsistentFrequencyInMinutes | The crash consistent snapshot frequency (in minutes). | int |
recoveryPointHistoryInMinutes | The duration in minutes until which the recovery points need to be stored. | int |