Microsoft.DataReplication replicationVaults/replicationPolicies 2021-02-16-preview

Bicep resource definition

The replicationVaults/replicationPolicies resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DataReplication/replicationVaults/replicationPolicies resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.DataReplication/replicationVaults/replicationPolicies@2021-02-16-preview' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    customProperties: {
      instanceType: 'string'
      // For remaining properties, see PolicyModelCustomProperties objects
    }
  }
}

PolicyModelCustomProperties objects

Set the instanceType property to specify the type of object.

For HyperVToAzStackHCI, use:

{
  appConsistentFrequencyInMinutes: int
  crashConsistentFrequencyInMinutes: int
  instanceType: 'HyperVToAzStackHCI'
  recoveryPointHistoryInMinutes: int
}

For VMwareToAzStackHCI, use:

{
  appConsistentFrequencyInMinutes: int
  crashConsistentFrequencyInMinutes: int
  instanceType: 'VMwareToAzStackHCI'
  recoveryPointHistoryInMinutes: int
}

Property Values

Microsoft.DataReplication/replicationVaults/replicationPolicies

Name Description Value
name The resource name string

Constraints:
Pattern = ^[a-zA-Z0-9]*$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: replicationVaults
properties Policy model properties. PolicyModelProperties (required)

HyperVToAzStackHCIPolicyModelCustomProperties

Name Description Value
appConsistentFrequencyInMinutes Gets or sets the app consistent snapshot frequency (in minutes). int (required)
crashConsistentFrequencyInMinutes Gets or sets the crash consistent snapshot frequency (in minutes). int (required)
instanceType Gets or sets the instance type. 'HyperVToAzStackHCI' (required)
recoveryPointHistoryInMinutes Gets or sets the duration in minutes until which the recovery points need to be
stored.
int (required)

PolicyModelCustomProperties

Name Description Value
instanceType Set to 'HyperVToAzStackHCI' for type HyperVToAzStackHCIPolicyModelCustomProperties. Set to 'VMwareToAzStackHCI' for type VMwareToAzStackHCIPolicyModelCustomProperties. 'HyperVToAzStackHCI'
'VMwareToAzStackHCI' (required)

PolicyModelProperties

Name Description Value
customProperties Policy model custom properties. PolicyModelCustomProperties (required)

VMwareToAzStackHCIPolicyModelCustomProperties

Name Description Value
appConsistentFrequencyInMinutes Gets or sets the app consistent snapshot frequency (in minutes). int (required)
crashConsistentFrequencyInMinutes Gets or sets the crash consistent snapshot frequency (in minutes). int (required)
instanceType Gets or sets the instance type. 'VMwareToAzStackHCI' (required)
recoveryPointHistoryInMinutes Gets or sets the duration in minutes until which the recovery points need to be
stored.
int (required)

ARM template resource definition

The replicationVaults/replicationPolicies resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.DataReplication/replicationVaults/replicationPolicies resource, add the following JSON to your template.

{
  "type": "Microsoft.DataReplication/replicationVaults/replicationPolicies",
  "apiVersion": "2021-02-16-preview",
  "name": "string",
  "properties": {
    "customProperties": {
      "instanceType": "string"
      // For remaining properties, see PolicyModelCustomProperties objects
    }
  }
}

PolicyModelCustomProperties objects

Set the instanceType property to specify the type of object.

For HyperVToAzStackHCI, use:

{
  "appConsistentFrequencyInMinutes": "int",
  "crashConsistentFrequencyInMinutes": "int",
  "instanceType": "HyperVToAzStackHCI",
  "recoveryPointHistoryInMinutes": "int"
}

For VMwareToAzStackHCI, use:

{
  "appConsistentFrequencyInMinutes": "int",
  "crashConsistentFrequencyInMinutes": "int",
  "instanceType": "VMwareToAzStackHCI",
  "recoveryPointHistoryInMinutes": "int"
}

Property Values

Microsoft.DataReplication/replicationVaults/replicationPolicies

Name Description Value
apiVersion The api version '2021-02-16-preview'
name The resource name string

Constraints:
Pattern = ^[a-zA-Z0-9]*$ (required)
properties Policy model properties. PolicyModelProperties (required)
type The resource type 'Microsoft.DataReplication/replicationVaults/replicationPolicies'

HyperVToAzStackHCIPolicyModelCustomProperties

Name Description Value
appConsistentFrequencyInMinutes Gets or sets the app consistent snapshot frequency (in minutes). int (required)
crashConsistentFrequencyInMinutes Gets or sets the crash consistent snapshot frequency (in minutes). int (required)
instanceType Gets or sets the instance type. 'HyperVToAzStackHCI' (required)
recoveryPointHistoryInMinutes Gets or sets the duration in minutes until which the recovery points need to be
stored.
int (required)

PolicyModelCustomProperties

Name Description Value
instanceType Set to 'HyperVToAzStackHCI' for type HyperVToAzStackHCIPolicyModelCustomProperties. Set to 'VMwareToAzStackHCI' for type VMwareToAzStackHCIPolicyModelCustomProperties. 'HyperVToAzStackHCI'
'VMwareToAzStackHCI' (required)

PolicyModelProperties

Name Description Value
customProperties Policy model custom properties. PolicyModelCustomProperties (required)

VMwareToAzStackHCIPolicyModelCustomProperties

Name Description Value
appConsistentFrequencyInMinutes Gets or sets the app consistent snapshot frequency (in minutes). int (required)
crashConsistentFrequencyInMinutes Gets or sets the crash consistent snapshot frequency (in minutes). int (required)
instanceType Gets or sets the instance type. 'VMwareToAzStackHCI' (required)
recoveryPointHistoryInMinutes Gets or sets the duration in minutes until which the recovery points need to be
stored.
int (required)

Terraform (AzAPI provider) resource definition

The replicationVaults/replicationPolicies resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.DataReplication/replicationVaults/replicationPolicies resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.DataReplication/replicationVaults/replicationPolicies@2021-02-16-preview"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      customProperties = {
        instanceType = "string"
        // For remaining properties, see PolicyModelCustomProperties objects
      }
    }
  }
}

PolicyModelCustomProperties objects

Set the instanceType property to specify the type of object.

For HyperVToAzStackHCI, use:

{
  appConsistentFrequencyInMinutes = int
  crashConsistentFrequencyInMinutes = int
  instanceType = "HyperVToAzStackHCI"
  recoveryPointHistoryInMinutes = int
}

For VMwareToAzStackHCI, use:

{
  appConsistentFrequencyInMinutes = int
  crashConsistentFrequencyInMinutes = int
  instanceType = "VMwareToAzStackHCI"
  recoveryPointHistoryInMinutes = int
}

Property Values

Microsoft.DataReplication/replicationVaults/replicationPolicies

Name Description Value
name The resource name string

Constraints:
Pattern = ^[a-zA-Z0-9]*$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: replicationVaults
properties Policy model properties. PolicyModelProperties (required)
type The resource type "Microsoft.DataReplication/replicationVaults/replicationPolicies@2021-02-16-preview"

HyperVToAzStackHCIPolicyModelCustomProperties

Name Description Value
appConsistentFrequencyInMinutes Gets or sets the app consistent snapshot frequency (in minutes). int (required)
crashConsistentFrequencyInMinutes Gets or sets the crash consistent snapshot frequency (in minutes). int (required)
instanceType Gets or sets the instance type. 'HyperVToAzStackHCI' (required)
recoveryPointHistoryInMinutes Gets or sets the duration in minutes until which the recovery points need to be
stored.
int (required)

PolicyModelCustomProperties

Name Description Value
instanceType Set to 'HyperVToAzStackHCI' for type HyperVToAzStackHCIPolicyModelCustomProperties. Set to 'VMwareToAzStackHCI' for type VMwareToAzStackHCIPolicyModelCustomProperties. 'HyperVToAzStackHCI'
'VMwareToAzStackHCI' (required)

PolicyModelProperties

Name Description Value
customProperties Policy model custom properties. PolicyModelCustomProperties (required)

VMwareToAzStackHCIPolicyModelCustomProperties

Name Description Value
appConsistentFrequencyInMinutes Gets or sets the app consistent snapshot frequency (in minutes). int (required)
crashConsistentFrequencyInMinutes Gets or sets the crash consistent snapshot frequency (in minutes). int (required)
instanceType Gets or sets the instance type. 'VMwareToAzStackHCI' (required)
recoveryPointHistoryInMinutes Gets or sets the duration in minutes until which the recovery points need to be
stored.
int (required)