Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
- Latest
- 2025-08-01
- 2025-02-01
- 2025-01-01
- 2024-10-01
- 2024-04-01
- 2024-02-01
- 2024-01-01
- 2023-08-01
- 2023-06-01
- 2023-04-01
- 2023-02-01
- 2023-01-01
- 2022-10-01
- 2022-09-10
- 2022-08-01
- 2022-05-01
- 2022-04-01
- 2022-03-01
- 2022-02-01
- 2022-01-01
- 2021-12-01
- 2021-11-01
- 2021-10-01
- 2021-08-01
- 2021-07-01
- 2021-06-01
- 2021-04-01
- 2021-03-01
- 2021-02-10
- 2018-07-10
- 2018-01-10
- 2016-08-10
Bicep resource definition
The vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings 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.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings@2023-06-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
fabricSpecificDetails: {
instanceType: 'string'
// For remaining properties, see FabricSpecificCreateNetworkMappingInput objects
}
recoveryFabricName: 'string'
recoveryNetworkId: 'string'
}
}
FabricSpecificCreateNetworkMappingInput objects
Set the instanceType property to specify the type of object.
For AzureToAzure, use:
{
instanceType: 'AzureToAzure'
primaryNetworkId: 'string'
}
For VmmToAzure, use:
{
instanceType: 'VmmToAzure'
}
For VmmToVmm, use:
{
instanceType: 'VmmToVmm'
}
Property Values
Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings
| Name | Description | Value |
|---|---|---|
| name | The resource name | 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/replicationFabrics/replicationNetworks |
| properties | Input properties for creating network mapping. | CreateNetworkMappingInputPropertiesOrNetworkMappingProperties (required) |
AzureToAzureCreateNetworkMappingInput
| Name | Description | Value |
|---|---|---|
| instanceType | The instance type. | 'AzureToAzure' (required) |
| primaryNetworkId | The primary azure vnet Id. | string (required) |
CreateNetworkMappingInputPropertiesOrNetworkMappingProperties
| Name | Description | Value |
|---|---|---|
| fabricSpecificDetails | Fabric specific input properties. | FabricSpecificCreateNetworkMappingInput |
| recoveryFabricName | Recovery fabric Name. | string |
| recoveryNetworkId | Recovery network Id. | string (required) |
FabricSpecificCreateNetworkMappingInput
| Name | Description | Value |
|---|---|---|
| instanceType | Set to 'AzureToAzure' for type AzureToAzureCreateNetworkMappingInput. Set to 'VmmToAzure' for type VmmToAzureCreateNetworkMappingInput. Set to 'VmmToVmm' for type VmmToVmmCreateNetworkMappingInput. | 'AzureToAzure' 'VmmToAzure' 'VmmToVmm' (required) |
VmmToAzureCreateNetworkMappingInput
| Name | Description | Value |
|---|---|---|
| instanceType | The instance type. | 'VmmToAzure' (required) |
VmmToVmmCreateNetworkMappingInput
| Name | Description | Value |
|---|---|---|
| instanceType | The instance type. | 'VmmToVmm' (required) |
Usage Examples
Azure Quickstart Samples
The following Azure Quickstart templates contain Bicep samples for deploying this resource type.
| Bicep File | Description |
|---|---|
| Create Azure VM Replication and Disaster Recovery | This template allows you to create Azure Virtual machine site replication disaster recovery. |
ARM template resource definition
The vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings 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.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings resource, add the following JSON to your template.
{
"type": "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings",
"apiVersion": "2023-06-01",
"name": "string",
"properties": {
"fabricSpecificDetails": {
"instanceType": "string"
// For remaining properties, see FabricSpecificCreateNetworkMappingInput objects
},
"recoveryFabricName": "string",
"recoveryNetworkId": "string"
}
}
FabricSpecificCreateNetworkMappingInput objects
Set the instanceType property to specify the type of object.
For AzureToAzure, use:
{
"instanceType": "AzureToAzure",
"primaryNetworkId": "string"
}
For VmmToAzure, use:
{
"instanceType": "VmmToAzure"
}
For VmmToVmm, use:
{
"instanceType": "VmmToVmm"
}
Property Values
Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2023-06-01' |
| name | The resource name | string (required) |
| properties | Input properties for creating network mapping. | CreateNetworkMappingInputPropertiesOrNetworkMappingProperties (required) |
| type | The resource type | 'Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings' |
AzureToAzureCreateNetworkMappingInput
| Name | Description | Value |
|---|---|---|
| instanceType | The instance type. | 'AzureToAzure' (required) |
| primaryNetworkId | The primary azure vnet Id. | string (required) |
CreateNetworkMappingInputPropertiesOrNetworkMappingProperties
| Name | Description | Value |
|---|---|---|
| fabricSpecificDetails | Fabric specific input properties. | FabricSpecificCreateNetworkMappingInput |
| recoveryFabricName | Recovery fabric Name. | string |
| recoveryNetworkId | Recovery network Id. | string (required) |
FabricSpecificCreateNetworkMappingInput
| Name | Description | Value |
|---|---|---|
| instanceType | Set to 'AzureToAzure' for type AzureToAzureCreateNetworkMappingInput. Set to 'VmmToAzure' for type VmmToAzureCreateNetworkMappingInput. Set to 'VmmToVmm' for type VmmToVmmCreateNetworkMappingInput. | 'AzureToAzure' 'VmmToAzure' 'VmmToVmm' (required) |
VmmToAzureCreateNetworkMappingInput
| Name | Description | Value |
|---|---|---|
| instanceType | The instance type. | 'VmmToAzure' (required) |
VmmToVmmCreateNetworkMappingInput
| Name | Description | Value |
|---|---|---|
| instanceType | The instance type. | 'VmmToVmm' (required) |
Usage Examples
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
| Template | Description |
|---|---|
| Create Azure VM Replication and Disaster Recovery |
This template allows you to create Azure Virtual machine site replication disaster recovery. |
Terraform (AzAPI provider) resource definition
The vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings 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.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings@2023-06-01"
name = "string"
parent_id = "string"
body = {
properties = {
fabricSpecificDetails = {
instanceType = "string"
// For remaining properties, see FabricSpecificCreateNetworkMappingInput objects
}
recoveryFabricName = "string"
recoveryNetworkId = "string"
}
}
}
FabricSpecificCreateNetworkMappingInput objects
Set the instanceType property to specify the type of object.
For AzureToAzure, use:
{
instanceType = "AzureToAzure"
primaryNetworkId = "string"
}
For VmmToAzure, use:
{
instanceType = "VmmToAzure"
}
For VmmToVmm, use:
{
instanceType = "VmmToVmm"
}
Property Values
Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings
| Name | Description | Value |
|---|---|---|
| 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/replicationFabrics/replicationNetworks |
| properties | Input properties for creating network mapping. | CreateNetworkMappingInputPropertiesOrNetworkMappingProperties (required) |
| type | The resource type | "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings@2023-06-01" |
AzureToAzureCreateNetworkMappingInput
| Name | Description | Value |
|---|---|---|
| instanceType | The instance type. | 'AzureToAzure' (required) |
| primaryNetworkId | The primary azure vnet Id. | string (required) |
CreateNetworkMappingInputPropertiesOrNetworkMappingProperties
| Name | Description | Value |
|---|---|---|
| fabricSpecificDetails | Fabric specific input properties. | FabricSpecificCreateNetworkMappingInput |
| recoveryFabricName | Recovery fabric Name. | string |
| recoveryNetworkId | Recovery network Id. | string (required) |
FabricSpecificCreateNetworkMappingInput
| Name | Description | Value |
|---|---|---|
| instanceType | Set to 'AzureToAzure' for type AzureToAzureCreateNetworkMappingInput. Set to 'VmmToAzure' for type VmmToAzureCreateNetworkMappingInput. Set to 'VmmToVmm' for type VmmToVmmCreateNetworkMappingInput. | 'AzureToAzure' 'VmmToAzure' 'VmmToVmm' (required) |
VmmToAzureCreateNetworkMappingInput
| Name | Description | Value |
|---|---|---|
| instanceType | The instance type. | 'VmmToAzure' (required) |
VmmToVmmCreateNetworkMappingInput
| Name | Description | Value |
|---|---|---|
| instanceType | The instance type. | 'VmmToVmm' (required) |
Usage Examples
Terraform Samples
A basic example of deploying site recovery network mapping on Azure.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westus"
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "vault" {
type = "Microsoft.RecoveryServices/vaults@2024-01-01"
parent_id = azapi_resource.resourceGroup.id
name = "${var.resource_name}-rsv"
location = var.location
body = {
properties = {
publicNetworkAccess = "Enabled"
redundancySettings = {
crossRegionRestore = "Disabled"
standardTierStorageRedundancy = "GeoRedundant"
}
}
sku = {
name = "Standard"
}
}
}
resource "azapi_resource" "replicationFabric" {
type = "Microsoft.RecoveryServices/vaults/replicationFabrics@2024-04-01"
parent_id = azapi_resource.vault.id
name = "${var.resource_name}-fabric1"
body = {
properties = {
customDetails = {
instanceType = "Azure"
location = var.location
}
}
}
}
resource "azapi_resource" "replicationFabric_1" {
type = "Microsoft.RecoveryServices/vaults/replicationFabrics@2024-04-01"
parent_id = azapi_resource.vault.id
name = "${var.resource_name}-fabric2"
body = {
properties = {
customDetails = {
instanceType = "Azure"
location = "centralus"
}
}
}
}
resource "azapi_resource" "virtualNetwork" {
type = "Microsoft.Network/virtualNetworks@2024-05-01"
parent_id = azapi_resource.resourceGroup.id
name = "${var.resource_name}-vnet1"
location = var.location
body = {
properties = {
addressSpace = {
addressPrefixes = ["192.168.1.0/24"]
}
dhcpOptions = {
dnsServers = []
}
privateEndpointVNetPolicies = "Disabled"
subnets = []
}
}
}
resource "azapi_resource" "virtualNetwork_1" {
type = "Microsoft.Network/virtualNetworks@2024-05-01"
parent_id = azapi_resource.resourceGroup.id
name = "${var.resource_name}-vnet2"
location = "centralus"
body = {
properties = {
addressSpace = {
addressPrefixes = ["192.168.2.0/24"]
}
dhcpOptions = {
dnsServers = []
}
privateEndpointVNetPolicies = "Disabled"
subnets = []
}
}
}
resource "azapi_resource" "replicationNetworkMapping" {
type = "Microsoft.RecoveryServices/vaults/replicationFabrics/replicationNetworks/replicationNetworkMappings@2024-04-01"
parent_id = "${azapi_resource.replicationFabric.id}/replicationNetworks/${basename(azapi_resource.virtualNetwork.id)}"
name = "${var.resource_name}-mapping"
body = {
properties = {
fabricSpecificDetails = {
instanceType = "AzureToAzure"
primaryNetworkId = azapi_resource.virtualNetwork.id
}
recoveryFabricName = azapi_resource.replicationFabric_1.name
recoveryNetworkId = azapi_resource.virtualNetwork_1.id
}
}
}