Microsoft.RecoveryServices vaults/replicationProtectionIntents 2021-03-01

Bicep resource definition

The vaults/replicationProtectionIntents resource type can be deployed to:

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

Resource format

To create a Microsoft.RecoveryServices/vaults/replicationProtectionIntents resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.RecoveryServices/vaults/replicationProtectionIntents@2021-03-01' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    providerSpecificDetails: {
      instanceType: 'string'
      // For remaining properties, see CreateProtectionIntentProviderSpecificDetailsOrReplicationProtectionIntentProviderSpecificSettings objects
    }
  }
}

CreateProtectionIntentProviderSpecificDetailsOrReplicationProtectionIntentProviderSpecificSettings objects

Set the instanceType property to specify the type of object.

For A2A, use:

  instanceType: 'A2A'
  autoProtectionOfDataDisk: 'string'
  diskEncryptionInfo: {
    diskEncryptionKeyInfo: {
      keyVaultResourceArmId: 'string'
      secretIdentifier: 'string'
    }
    keyEncryptionKeyInfo: {
      keyIdentifier: 'string'
      keyVaultResourceArmId: 'string'
    }
  }
  fabricObjectId: 'string'
  multiVmGroupId: 'string'
  multiVmGroupName: 'string'
  primaryLocation: 'string'
  primaryStagingStorageAccountCustomInput: {
    resourceType: 'string'
    // For remaining properties, see StorageAccountCustomDetails objects
  }
  protectionProfileCustomInput: {
    resourceType: 'string'
    // For remaining properties, see ProtectionProfileCustomDetails objects
  }
  recoveryAvailabilitySetCustomInput: {
    resourceType: 'string'
    // For remaining properties, see RecoveryAvailabilitySetCustomDetails objects
  }
  recoveryAvailabilityType: 'string'
  recoveryAvailabilityZone: 'string'
  recoveryBootDiagStorageAccount: {
    resourceType: 'string'
    // For remaining properties, see StorageAccountCustomDetails objects
  }
  recoveryLocation: 'string'
  recoveryProximityPlacementGroupCustomInput: {
    resourceType: 'string'
    // For remaining properties, see RecoveryProximityPlacementGroupCustomDetails objects
  }
  recoveryResourceGroupId: 'string'
  recoverySubscriptionId: 'string'
  recoveryVirtualNetworkCustomInput: {
    resourceType: 'string'
    // For remaining properties, see RecoveryVirtualNetworkCustomDetails objects
  }
  vmDisks: [
    {
      diskUri: 'string'
      primaryStagingStorageAccountCustomInput: {
        resourceType: 'string'
        // For remaining properties, see StorageAccountCustomDetails objects
      }
      recoveryAzureStorageAccountCustomInput: {
        resourceType: 'string'
        // For remaining properties, see StorageAccountCustomDetails objects
      }
    }
  ]
  vmManagedDisks: [
    {
      diskEncryptionInfo: {
        diskEncryptionKeyInfo: {
          keyVaultResourceArmId: 'string'
          secretIdentifier: 'string'
        }
        keyEncryptionKeyInfo: {
          keyIdentifier: 'string'
          keyVaultResourceArmId: 'string'
        }
      }
      diskId: 'string'
      primaryStagingStorageAccountCustomInput: {
        resourceType: 'string'
        // For remaining properties, see StorageAccountCustomDetails objects
      }
      recoveryDiskEncryptionSetId: 'string'
      recoveryReplicaDiskAccountType: 'string'
      recoveryResourceGroupCustomInput: {
        resourceType: 'string'
        // For remaining properties, see RecoveryResourceGroupCustomDetails objects
      }
      recoveryTargetDiskAccountType: 'string'
    }
  ]

StorageAccountCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  resourceType: 'Existing'
  azureStorageAccountId: 'string'

ProtectionProfileCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  resourceType: 'Existing'
  protectionProfileId: 'string'

For New, use:

  resourceType: 'New'
  appConsistentFrequencyInMinutes: int
  crashConsistentFrequencyInMinutes: int
  multiVmSyncStatus: 'string'
  policyName: 'string'
  recoveryPointHistory: int

RecoveryAvailabilitySetCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  resourceType: 'Existing'
  recoveryAvailabilitySetId: 'string'

RecoveryProximityPlacementGroupCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  resourceType: 'Existing'
  recoveryProximityPlacementGroupId: 'string'

RecoveryVirtualNetworkCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  resourceType: 'Existing'
  recoverySubnetName: 'string'
  recoveryVirtualNetworkId: 'string'

For New, use:

  resourceType: 'New'
  recoveryVirtualNetworkName: 'string'
  recoveryVirtualNetworkResourceGroupName: 'string'

RecoveryResourceGroupCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  resourceType: 'Existing'
  recoveryResourceGroupId: 'string'

Property values

vaults/replicationProtectionIntents

Name Description Value
name The resource name

See how to set names and types for child resources in Bicep.
string (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: vaults
properties Create protection intent input properties. CreateProtectionIntentPropertiesOrReplicationProtect...

CreateProtectionIntentPropertiesOrReplicationProtect...

Name Description Value
providerSpecificDetails The ReplicationProviderInput. For A2A provider, it will be A2ACreateProtectionIntentInput object. For other providers, it can be null. CreateProtectionIntentProviderSpecificDetailsOrRepli...

CreateProtectionIntentProviderSpecificDetailsOrRepli...

Name Description Value
instanceType Set the object type A2A (required)

A2ACreateProtectionIntentInputOrA2AReplicationIntent...

Name Description Value
instanceType The class type. 'A2A' (required)
autoProtectionOfDataDisk A value indicating whether the auto protection is enabled. 'Disabled'
'Enabled'
diskEncryptionInfo The recovery disk encryption information (for two pass flows). DiskEncryptionInfo
fabricObjectId The fabric specific object Id of the virtual machine. string (required)
multiVmGroupId The multi vm group id. string
multiVmGroupName The multi vm group name. string
primaryLocation The primary location for the virtual machine. string (required)
primaryStagingStorageAccountCustomInput The primary staging storage account input. StorageAccountCustomDetails
protectionProfileCustomInput The protection profile custom inputs. ProtectionProfileCustomDetails
recoveryAvailabilitySetCustomInput The recovery availability set input. RecoveryAvailabilitySetCustomDetails
recoveryAvailabilityType The recovery availability type of the virtual machine. 'AvailabilitySet'
'AvailabilityZone'
'Single' (required)
recoveryAvailabilityZone The recovery availability zone. string
recoveryBootDiagStorageAccount The boot diagnostic storage account. StorageAccountCustomDetails
recoveryLocation The recovery location for the virtual machine. string (required)
recoveryProximityPlacementGroupCustomInput The recovery proximity placement group custom input. RecoveryProximityPlacementGroupCustomDetails
recoveryResourceGroupId The recovery resource group Id. Valid for V2 scenarios. string (required)
recoverySubscriptionId The recovery subscription Id of the virtual machine. string (required)
recoveryVirtualNetworkCustomInput The recovery virtual network input. RecoveryVirtualNetworkCustomDetails
vmDisks The list of vm disk inputs. A2AProtectionIntentDiskInputDetailsOrA2AVmDiskDetail...[]
vmManagedDisks The list of vm managed disk inputs. A2AProtectionIntentManagedDiskInputDetailsOrA2AVmMan...[]

DiskEncryptionInfo

Name Description Value
diskEncryptionKeyInfo The recovery KeyVault reference for secret. DiskEncryptionKeyInfo
keyEncryptionKeyInfo The recovery KeyVault reference for key. KeyEncryptionKeyInfo

DiskEncryptionKeyInfo

Name Description Value
keyVaultResourceArmId The KeyVault resource ARM Id for secret. string
secretIdentifier The secret URL / identifier. string

KeyEncryptionKeyInfo

Name Description Value
keyIdentifier The key URL / identifier. string
keyVaultResourceArmId The KeyVault resource ARM Id for key. string

StorageAccountCustomDetails

Name Description Value
resourceType Set the object type Existing (required)

ExistingStorageAccount

Name Description Value
resourceType The class type. 'Existing' (required)
azureStorageAccountId The storage account Arm Id. Throw error, if resource does not exists. string (required)

ProtectionProfileCustomDetails

Name Description Value
resourceType Set the object type Existing
New (required)

ExistingProtectionProfile

Name Description Value
resourceType The class type. 'Existing' (required)
protectionProfileId The protection profile Arm Id. Throw error, if resource does not exists. string (required)

NewProtectionProfile

Name Description Value
resourceType The class type. 'New' (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)
policyName The protection profile input. string (required)
recoveryPointHistory The duration in minutes until which the recovery points need to be stored. int

RecoveryAvailabilitySetCustomDetails

Name Description Value
resourceType Set the object type Existing (required)

ExistingRecoveryAvailabilitySet

Name Description Value
resourceType The class type. 'Existing' (required)
recoveryAvailabilitySetId The recovery availability set Id. Will throw error, if resource does not exist. string

RecoveryProximityPlacementGroupCustomDetails

Name Description Value
resourceType Set the object type Existing (required)

ExistingRecoveryProximityPlacementGroup

Name Description Value
resourceType The class type. 'Existing' (required)
recoveryProximityPlacementGroupId The recovery proximity placement group Id. Will throw error, if resource does not exist. string

RecoveryVirtualNetworkCustomDetails

Name Description Value
resourceType Set the object type Existing
New (required)

ExistingRecoveryVirtualNetwork

Name Description Value
resourceType The class type. 'Existing' (required)
recoverySubnetName The recovery subnet name. string
recoveryVirtualNetworkId The recovery virtual network Id. Will throw error, if resource does not exist. string (required)

NewRecoveryVirtualNetwork

Name Description Value
resourceType The class type. 'New' (required)
recoveryVirtualNetworkName The recovery virtual network name. string
recoveryVirtualNetworkResourceGroupName The name of the resource group to be used to create the recovery virtual network. If absent, target network would be created in the same resource group as target VM. string

A2AProtectionIntentDiskInputDetailsOrA2AVmDiskDetail...

Name Description Value
diskUri The disk Uri. string (required)
primaryStagingStorageAccountCustomInput The primary staging storage account input. StorageAccountCustomDetails
recoveryAzureStorageAccountCustomInput The recovery VHD storage account input. StorageAccountCustomDetails

A2AProtectionIntentManagedDiskInputDetailsOrA2AVmMan...

Name Description Value
diskEncryptionInfo The recovery disk encryption information (for one / single pass flows). DiskEncryptionInfo
diskId The disk Id. string (required)
primaryStagingStorageAccountCustomInput The primary staging storage account input. StorageAccountCustomDetails
recoveryDiskEncryptionSetId The recovery disk encryption set Id. string
recoveryReplicaDiskAccountType The replica disk type. Its an optional value and will be same as source disk type if not user provided. string
recoveryResourceGroupCustomInput The recovery resource group input. RecoveryResourceGroupCustomDetails
recoveryTargetDiskAccountType The target disk type after failover. Its an optional value and will be same as source disk type if not user provided. string

RecoveryResourceGroupCustomDetails

Name Description Value
resourceType Set the object type Existing (required)

ExistingRecoveryResourceGroup

Name Description Value
resourceType The class type. 'Existing' (required)
recoveryResourceGroupId The recovery resource group Id. Valid for V2 scenarios. string

ARM template resource definition

The vaults/replicationProtectionIntents resource type can be deployed to:

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

Resource format

To create a Microsoft.RecoveryServices/vaults/replicationProtectionIntents resource, add the following JSON to your template.

{
  "type": "Microsoft.RecoveryServices/vaults/replicationProtectionIntents",
  "apiVersion": "2021-03-01",
  "name": "string",
  "properties": {
    "providerSpecificDetails": {
      "instanceType": "string"
      // For remaining properties, see CreateProtectionIntentProviderSpecificDetailsOrReplicationProtectionIntentProviderSpecificSettings objects
    }
  }
}

CreateProtectionIntentProviderSpecificDetailsOrReplicationProtectionIntentProviderSpecificSettings objects

Set the instanceType property to specify the type of object.

For A2A, use:

  "instanceType": "A2A",
  "autoProtectionOfDataDisk": "string",
  "diskEncryptionInfo": {
    "diskEncryptionKeyInfo": {
      "keyVaultResourceArmId": "string",
      "secretIdentifier": "string"
    },
    "keyEncryptionKeyInfo": {
      "keyIdentifier": "string",
      "keyVaultResourceArmId": "string"
    }
  },
  "fabricObjectId": "string",
  "multiVmGroupId": "string",
  "multiVmGroupName": "string",
  "primaryLocation": "string",
  "primaryStagingStorageAccountCustomInput": {
    "resourceType": "string"
    // For remaining properties, see StorageAccountCustomDetails objects
  },
  "protectionProfileCustomInput": {
    "resourceType": "string"
    // For remaining properties, see ProtectionProfileCustomDetails objects
  },
  "recoveryAvailabilitySetCustomInput": {
    "resourceType": "string"
    // For remaining properties, see RecoveryAvailabilitySetCustomDetails objects
  },
  "recoveryAvailabilityType": "string",
  "recoveryAvailabilityZone": "string",
  "recoveryBootDiagStorageAccount": {
    "resourceType": "string"
    // For remaining properties, see StorageAccountCustomDetails objects
  },
  "recoveryLocation": "string",
  "recoveryProximityPlacementGroupCustomInput": {
    "resourceType": "string"
    // For remaining properties, see RecoveryProximityPlacementGroupCustomDetails objects
  },
  "recoveryResourceGroupId": "string",
  "recoverySubscriptionId": "string",
  "recoveryVirtualNetworkCustomInput": {
    "resourceType": "string"
    // For remaining properties, see RecoveryVirtualNetworkCustomDetails objects
  },
  "vmDisks": [
    {
      "diskUri": "string",
      "primaryStagingStorageAccountCustomInput": {
        "resourceType": "string"
        // For remaining properties, see StorageAccountCustomDetails objects
      },
      "recoveryAzureStorageAccountCustomInput": {
        "resourceType": "string"
        // For remaining properties, see StorageAccountCustomDetails objects
      }
    }
  ],
  "vmManagedDisks": [
    {
      "diskEncryptionInfo": {
        "diskEncryptionKeyInfo": {
          "keyVaultResourceArmId": "string",
          "secretIdentifier": "string"
        },
        "keyEncryptionKeyInfo": {
          "keyIdentifier": "string",
          "keyVaultResourceArmId": "string"
        }
      },
      "diskId": "string",
      "primaryStagingStorageAccountCustomInput": {
        "resourceType": "string"
        // For remaining properties, see StorageAccountCustomDetails objects
      },
      "recoveryDiskEncryptionSetId": "string",
      "recoveryReplicaDiskAccountType": "string",
      "recoveryResourceGroupCustomInput": {
        "resourceType": "string"
        // For remaining properties, see RecoveryResourceGroupCustomDetails objects
      },
      "recoveryTargetDiskAccountType": "string"
    }
  ]

StorageAccountCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  "resourceType": "Existing",
  "azureStorageAccountId": "string"

ProtectionProfileCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  "resourceType": "Existing",
  "protectionProfileId": "string"

For New, use:

  "resourceType": "New",
  "appConsistentFrequencyInMinutes": "int",
  "crashConsistentFrequencyInMinutes": "int",
  "multiVmSyncStatus": "string",
  "policyName": "string",
  "recoveryPointHistory": "int"

RecoveryAvailabilitySetCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  "resourceType": "Existing",
  "recoveryAvailabilitySetId": "string"

RecoveryProximityPlacementGroupCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  "resourceType": "Existing",
  "recoveryProximityPlacementGroupId": "string"

RecoveryVirtualNetworkCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  "resourceType": "Existing",
  "recoverySubnetName": "string",
  "recoveryVirtualNetworkId": "string"

For New, use:

  "resourceType": "New",
  "recoveryVirtualNetworkName": "string",
  "recoveryVirtualNetworkResourceGroupName": "string"

RecoveryResourceGroupCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  "resourceType": "Existing",
  "recoveryResourceGroupId": "string"

Property values

vaults/replicationProtectionIntents

Name Description Value
type The resource type 'Microsoft.RecoveryServices/vaults/replicationProtectionIntents'
apiVersion The resource api version '2021-03-01'
name The resource name

See how to set names and types for child resources in JSON ARM templates.
string (required)
properties Create protection intent input properties. CreateProtectionIntentPropertiesOrReplicationProtect...

CreateProtectionIntentPropertiesOrReplicationProtect...

Name Description Value
providerSpecificDetails The ReplicationProviderInput. For A2A provider, it will be A2ACreateProtectionIntentInput object. For other providers, it can be null. CreateProtectionIntentProviderSpecificDetailsOrRepli...

CreateProtectionIntentProviderSpecificDetailsOrRepli...

Name Description Value
instanceType Set the object type A2A (required)

A2ACreateProtectionIntentInputOrA2AReplicationIntent...

Name Description Value
instanceType The class type. 'A2A' (required)
autoProtectionOfDataDisk A value indicating whether the auto protection is enabled. 'Disabled'
'Enabled'
diskEncryptionInfo The recovery disk encryption information (for two pass flows). DiskEncryptionInfo
fabricObjectId The fabric specific object Id of the virtual machine. string (required)
multiVmGroupId The multi vm group id. string
multiVmGroupName The multi vm group name. string
primaryLocation The primary location for the virtual machine. string (required)
primaryStagingStorageAccountCustomInput The primary staging storage account input. StorageAccountCustomDetails
protectionProfileCustomInput The protection profile custom inputs. ProtectionProfileCustomDetails
recoveryAvailabilitySetCustomInput The recovery availability set input. RecoveryAvailabilitySetCustomDetails
recoveryAvailabilityType The recovery availability type of the virtual machine. 'AvailabilitySet'
'AvailabilityZone'
'Single' (required)
recoveryAvailabilityZone The recovery availability zone. string
recoveryBootDiagStorageAccount The boot diagnostic storage account. StorageAccountCustomDetails
recoveryLocation The recovery location for the virtual machine. string (required)
recoveryProximityPlacementGroupCustomInput The recovery proximity placement group custom input. RecoveryProximityPlacementGroupCustomDetails
recoveryResourceGroupId The recovery resource group Id. Valid for V2 scenarios. string (required)
recoverySubscriptionId The recovery subscription Id of the virtual machine. string (required)
recoveryVirtualNetworkCustomInput The recovery virtual network input. RecoveryVirtualNetworkCustomDetails
vmDisks The list of vm disk inputs. A2AProtectionIntentDiskInputDetailsOrA2AVmDiskDetail...[]
vmManagedDisks The list of vm managed disk inputs. A2AProtectionIntentManagedDiskInputDetailsOrA2AVmMan...[]

DiskEncryptionInfo

Name Description Value
diskEncryptionKeyInfo The recovery KeyVault reference for secret. DiskEncryptionKeyInfo
keyEncryptionKeyInfo The recovery KeyVault reference for key. KeyEncryptionKeyInfo

DiskEncryptionKeyInfo

Name Description Value
keyVaultResourceArmId The KeyVault resource ARM Id for secret. string
secretIdentifier The secret URL / identifier. string

KeyEncryptionKeyInfo

Name Description Value
keyIdentifier The key URL / identifier. string
keyVaultResourceArmId The KeyVault resource ARM Id for key. string

StorageAccountCustomDetails

Name Description Value
resourceType Set the object type Existing (required)

ExistingStorageAccount

Name Description Value
resourceType The class type. 'Existing' (required)
azureStorageAccountId The storage account Arm Id. Throw error, if resource does not exists. string (required)

ProtectionProfileCustomDetails

Name Description Value
resourceType Set the object type Existing
New (required)

ExistingProtectionProfile

Name Description Value
resourceType The class type. 'Existing' (required)
protectionProfileId The protection profile Arm Id. Throw error, if resource does not exists. string (required)

NewProtectionProfile

Name Description Value
resourceType The class type. 'New' (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)
policyName The protection profile input. string (required)
recoveryPointHistory The duration in minutes until which the recovery points need to be stored. int

RecoveryAvailabilitySetCustomDetails

Name Description Value
resourceType Set the object type Existing (required)

ExistingRecoveryAvailabilitySet

Name Description Value
resourceType The class type. 'Existing' (required)
recoveryAvailabilitySetId The recovery availability set Id. Will throw error, if resource does not exist. string

RecoveryProximityPlacementGroupCustomDetails

Name Description Value
resourceType Set the object type Existing (required)

ExistingRecoveryProximityPlacementGroup

Name Description Value
resourceType The class type. 'Existing' (required)
recoveryProximityPlacementGroupId The recovery proximity placement group Id. Will throw error, if resource does not exist. string

RecoveryVirtualNetworkCustomDetails

Name Description Value
resourceType Set the object type Existing
New (required)

ExistingRecoveryVirtualNetwork

Name Description Value
resourceType The class type. 'Existing' (required)
recoverySubnetName The recovery subnet name. string
recoveryVirtualNetworkId The recovery virtual network Id. Will throw error, if resource does not exist. string (required)

NewRecoveryVirtualNetwork

Name Description Value
resourceType The class type. 'New' (required)
recoveryVirtualNetworkName The recovery virtual network name. string
recoveryVirtualNetworkResourceGroupName The name of the resource group to be used to create the recovery virtual network. If absent, target network would be created in the same resource group as target VM. string

A2AProtectionIntentDiskInputDetailsOrA2AVmDiskDetail...

Name Description Value
diskUri The disk Uri. string (required)
primaryStagingStorageAccountCustomInput The primary staging storage account input. StorageAccountCustomDetails
recoveryAzureStorageAccountCustomInput The recovery VHD storage account input. StorageAccountCustomDetails

A2AProtectionIntentManagedDiskInputDetailsOrA2AVmMan...

Name Description Value
diskEncryptionInfo The recovery disk encryption information (for one / single pass flows). DiskEncryptionInfo
diskId The disk Id. string (required)
primaryStagingStorageAccountCustomInput The primary staging storage account input. StorageAccountCustomDetails
recoveryDiskEncryptionSetId The recovery disk encryption set Id. string
recoveryReplicaDiskAccountType The replica disk type. Its an optional value and will be same as source disk type if not user provided. string
recoveryResourceGroupCustomInput The recovery resource group input. RecoveryResourceGroupCustomDetails
recoveryTargetDiskAccountType The target disk type after failover. Its an optional value and will be same as source disk type if not user provided. string

RecoveryResourceGroupCustomDetails

Name Description Value
resourceType Set the object type Existing (required)

ExistingRecoveryResourceGroup

Name Description Value
resourceType The class type. 'Existing' (required)
recoveryResourceGroupId The recovery resource group Id. Valid for V2 scenarios. string

Terraform (AzAPI provider) resource definition

The vaults/replicationProtectionIntents resource type can be deployed to:

  • Resource groups

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

Resource format

To create a Microsoft.RecoveryServices/vaults/replicationProtectionIntents resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.RecoveryServices/vaults/replicationProtectionIntents@2021-03-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      providerSpecificDetails = {
        instanceType = "string"
        // For remaining properties, see CreateProtectionIntentProviderSpecificDetailsOrReplicationProtectionIntentProviderSpecificSettings objects
      }
    }
  })
}

CreateProtectionIntentProviderSpecificDetailsOrReplicationProtectionIntentProviderSpecificSettings objects

Set the instanceType property to specify the type of object.

For A2A, use:

  instanceType = "A2A"
  autoProtectionOfDataDisk = "string"
  diskEncryptionInfo = {
    diskEncryptionKeyInfo = {
      keyVaultResourceArmId = "string"
      secretIdentifier = "string"
    }
    keyEncryptionKeyInfo = {
      keyIdentifier = "string"
      keyVaultResourceArmId = "string"
    }
  }
  fabricObjectId = "string"
  multiVmGroupId = "string"
  multiVmGroupName = "string"
  primaryLocation = "string"
  primaryStagingStorageAccountCustomInput = {
    resourceType = "string"
    // For remaining properties, see StorageAccountCustomDetails objects
  }
  protectionProfileCustomInput = {
    resourceType = "string"
    // For remaining properties, see ProtectionProfileCustomDetails objects
  }
  recoveryAvailabilitySetCustomInput = {
    resourceType = "string"
    // For remaining properties, see RecoveryAvailabilitySetCustomDetails objects
  }
  recoveryAvailabilityType = "string"
  recoveryAvailabilityZone = "string"
  recoveryBootDiagStorageAccount = {
    resourceType = "string"
    // For remaining properties, see StorageAccountCustomDetails objects
  }
  recoveryLocation = "string"
  recoveryProximityPlacementGroupCustomInput = {
    resourceType = "string"
    // For remaining properties, see RecoveryProximityPlacementGroupCustomDetails objects
  }
  recoveryResourceGroupId = "string"
  recoverySubscriptionId = "string"
  recoveryVirtualNetworkCustomInput = {
    resourceType = "string"
    // For remaining properties, see RecoveryVirtualNetworkCustomDetails objects
  }
  vmDisks = [
    {
      diskUri = "string"
      primaryStagingStorageAccountCustomInput = {
        resourceType = "string"
        // For remaining properties, see StorageAccountCustomDetails objects
      }
      recoveryAzureStorageAccountCustomInput = {
        resourceType = "string"
        // For remaining properties, see StorageAccountCustomDetails objects
      }
    }
  ]
  vmManagedDisks = [
    {
      diskEncryptionInfo = {
        diskEncryptionKeyInfo = {
          keyVaultResourceArmId = "string"
          secretIdentifier = "string"
        }
        keyEncryptionKeyInfo = {
          keyIdentifier = "string"
          keyVaultResourceArmId = "string"
        }
      }
      diskId = "string"
      primaryStagingStorageAccountCustomInput = {
        resourceType = "string"
        // For remaining properties, see StorageAccountCustomDetails objects
      }
      recoveryDiskEncryptionSetId = "string"
      recoveryReplicaDiskAccountType = "string"
      recoveryResourceGroupCustomInput = {
        resourceType = "string"
        // For remaining properties, see RecoveryResourceGroupCustomDetails objects
      }
      recoveryTargetDiskAccountType = "string"
    }
  ]

StorageAccountCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  resourceType = "Existing"
  azureStorageAccountId = "string"

ProtectionProfileCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  resourceType = "Existing"
  protectionProfileId = "string"

For New, use:

  resourceType = "New"
  appConsistentFrequencyInMinutes = int
  crashConsistentFrequencyInMinutes = int
  multiVmSyncStatus = "string"
  policyName = "string"
  recoveryPointHistory = int

RecoveryAvailabilitySetCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  resourceType = "Existing"
  recoveryAvailabilitySetId = "string"

RecoveryProximityPlacementGroupCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  resourceType = "Existing"
  recoveryProximityPlacementGroupId = "string"

RecoveryVirtualNetworkCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  resourceType = "Existing"
  recoverySubnetName = "string"
  recoveryVirtualNetworkId = "string"

For New, use:

  resourceType = "New"
  recoveryVirtualNetworkName = "string"
  recoveryVirtualNetworkResourceGroupName = "string"

RecoveryResourceGroupCustomDetails objects

Set the resourceType property to specify the type of object.

For Existing, use:

  resourceType = "Existing"
  recoveryResourceGroupId = "string"

Property values

vaults/replicationProtectionIntents

Name Description Value
type The resource type "Microsoft.RecoveryServices/vaults/replicationProtectionIntents@2021-03-01"
name The resource name string (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: vaults
properties Create protection intent input properties. CreateProtectionIntentPropertiesOrReplicationProtect...

CreateProtectionIntentPropertiesOrReplicationProtect...

Name Description Value
providerSpecificDetails The ReplicationProviderInput. For A2A provider, it will be A2ACreateProtectionIntentInput object. For other providers, it can be null. CreateProtectionIntentProviderSpecificDetailsOrRepli...

CreateProtectionIntentProviderSpecificDetailsOrRepli...

Name Description Value
instanceType Set the object type A2A (required)

A2ACreateProtectionIntentInputOrA2AReplicationIntent...

Name Description Value
instanceType The class type. "A2A" (required)
autoProtectionOfDataDisk A value indicating whether the auto protection is enabled. "Disabled"
"Enabled"
diskEncryptionInfo The recovery disk encryption information (for two pass flows). DiskEncryptionInfo
fabricObjectId The fabric specific object Id of the virtual machine. string (required)
multiVmGroupId The multi vm group id. string
multiVmGroupName The multi vm group name. string
primaryLocation The primary location for the virtual machine. string (required)
primaryStagingStorageAccountCustomInput The primary staging storage account input. StorageAccountCustomDetails
protectionProfileCustomInput The protection profile custom inputs. ProtectionProfileCustomDetails
recoveryAvailabilitySetCustomInput The recovery availability set input. RecoveryAvailabilitySetCustomDetails
recoveryAvailabilityType The recovery availability type of the virtual machine. "AvailabilitySet"
"AvailabilityZone"
"Single" (required)
recoveryAvailabilityZone The recovery availability zone. string
recoveryBootDiagStorageAccount The boot diagnostic storage account. StorageAccountCustomDetails
recoveryLocation The recovery location for the virtual machine. string (required)
recoveryProximityPlacementGroupCustomInput The recovery proximity placement group custom input. RecoveryProximityPlacementGroupCustomDetails
recoveryResourceGroupId The recovery resource group Id. Valid for V2 scenarios. string (required)
recoverySubscriptionId The recovery subscription Id of the virtual machine. string (required)
recoveryVirtualNetworkCustomInput The recovery virtual network input. RecoveryVirtualNetworkCustomDetails
vmDisks The list of vm disk inputs. A2AProtectionIntentDiskInputDetailsOrA2AVmDiskDetail...[]
vmManagedDisks The list of vm managed disk inputs. A2AProtectionIntentManagedDiskInputDetailsOrA2AVmMan...[]

DiskEncryptionInfo

Name Description Value
diskEncryptionKeyInfo The recovery KeyVault reference for secret. DiskEncryptionKeyInfo
keyEncryptionKeyInfo The recovery KeyVault reference for key. KeyEncryptionKeyInfo

DiskEncryptionKeyInfo

Name Description Value
keyVaultResourceArmId The KeyVault resource ARM Id for secret. string
secretIdentifier The secret URL / identifier. string

KeyEncryptionKeyInfo

Name Description Value
keyIdentifier The key URL / identifier. string
keyVaultResourceArmId The KeyVault resource ARM Id for key. string

StorageAccountCustomDetails

Name Description Value
resourceType Set the object type Existing (required)

ExistingStorageAccount

Name Description Value
resourceType The class type. "Existing" (required)
azureStorageAccountId The storage account Arm Id. Throw error, if resource does not exists. string (required)

ProtectionProfileCustomDetails

Name Description Value
resourceType Set the object type Existing
New (required)

ExistingProtectionProfile

Name Description Value
resourceType The class type. "Existing" (required)
protectionProfileId The protection profile Arm Id. Throw error, if resource does not exists. string (required)

NewProtectionProfile

Name Description Value
resourceType The class type. "New" (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)
policyName The protection profile input. string (required)
recoveryPointHistory The duration in minutes until which the recovery points need to be stored. int

RecoveryAvailabilitySetCustomDetails

Name Description Value
resourceType Set the object type Existing (required)

ExistingRecoveryAvailabilitySet

Name Description Value
resourceType The class type. "Existing" (required)
recoveryAvailabilitySetId The recovery availability set Id. Will throw error, if resource does not exist. string

RecoveryProximityPlacementGroupCustomDetails

Name Description Value
resourceType Set the object type Existing (required)

ExistingRecoveryProximityPlacementGroup

Name Description Value
resourceType The class type. "Existing" (required)
recoveryProximityPlacementGroupId The recovery proximity placement group Id. Will throw error, if resource does not exist. string

RecoveryVirtualNetworkCustomDetails

Name Description Value
resourceType Set the object type Existing
New (required)

ExistingRecoveryVirtualNetwork

Name Description Value
resourceType The class type. "Existing" (required)
recoverySubnetName The recovery subnet name. string
recoveryVirtualNetworkId The recovery virtual network Id. Will throw error, if resource does not exist. string (required)

NewRecoveryVirtualNetwork

Name Description Value
resourceType The class type. "New" (required)
recoveryVirtualNetworkName The recovery virtual network name. string
recoveryVirtualNetworkResourceGroupName The name of the resource group to be used to create the recovery virtual network. If absent, target network would be created in the same resource group as target VM. string

A2AProtectionIntentDiskInputDetailsOrA2AVmDiskDetail...

Name Description Value
diskUri The disk Uri. string (required)
primaryStagingStorageAccountCustomInput The primary staging storage account input. StorageAccountCustomDetails
recoveryAzureStorageAccountCustomInput The recovery VHD storage account input. StorageAccountCustomDetails

A2AProtectionIntentManagedDiskInputDetailsOrA2AVmMan...

Name Description Value
diskEncryptionInfo The recovery disk encryption information (for one / single pass flows). DiskEncryptionInfo
diskId The disk Id. string (required)
primaryStagingStorageAccountCustomInput The primary staging storage account input. StorageAccountCustomDetails
recoveryDiskEncryptionSetId The recovery disk encryption set Id. string
recoveryReplicaDiskAccountType The replica disk type. Its an optional value and will be same as source disk type if not user provided. string
recoveryResourceGroupCustomInput The recovery resource group input. RecoveryResourceGroupCustomDetails
recoveryTargetDiskAccountType The target disk type after failover. Its an optional value and will be same as source disk type if not user provided. string

RecoveryResourceGroupCustomDetails

Name Description Value
resourceType Set the object type Existing (required)

ExistingRecoveryResourceGroup

Name Description Value
resourceType The class type. "Existing" (required)
recoveryResourceGroupId The recovery resource group Id. Valid for V2 scenarios. string