We recommend using Azure Native.
azure.siterecovery.NetworkMapping
Explore with Pulumi AI
Manages a site recovery network mapping on Azure. A network mapping decides how to translate connected networks when a VM is migrated from one region to another.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const primary = new azure.core.ResourceGroup("primary", {
name: "tfex-network-mapping-primary",
location: "West US",
});
const secondary = new azure.core.ResourceGroup("secondary", {
name: "tfex-network-mapping-secondary",
location: "East US",
});
const vault = new azure.recoveryservices.Vault("vault", {
name: "example-recovery-vault",
location: secondary.location,
resourceGroupName: secondary.name,
sku: "Standard",
});
const primaryFabric = new azure.siterecovery.Fabric("primary", {
name: "primary-fabric",
resourceGroupName: secondary.name,
recoveryVaultName: vault.name,
location: primary.location,
});
const secondaryFabric = new azure.siterecovery.Fabric("secondary", {
name: "secondary-fabric",
resourceGroupName: secondary.name,
recoveryVaultName: vault.name,
location: secondary.location,
}, {
dependsOn: [primaryFabric],
});
const primaryVirtualNetwork = new azure.network.VirtualNetwork("primary", {
name: "network1",
resourceGroupName: primary.name,
addressSpaces: ["192.168.1.0/24"],
location: primary.location,
});
const secondaryVirtualNetwork = new azure.network.VirtualNetwork("secondary", {
name: "network2",
resourceGroupName: secondary.name,
addressSpaces: ["192.168.2.0/24"],
location: secondary.location,
});
const recovery_mapping = new azure.siterecovery.NetworkMapping("recovery-mapping", {
name: "recovery-network-mapping-1",
resourceGroupName: secondary.name,
recoveryVaultName: vault.name,
sourceRecoveryFabricName: "primary-fabric",
targetRecoveryFabricName: "secondary-fabric",
sourceNetworkId: primaryVirtualNetwork.id,
targetNetworkId: secondaryVirtualNetwork.id,
});
import pulumi
import pulumi_azure as azure
primary = azure.core.ResourceGroup("primary",
name="tfex-network-mapping-primary",
location="West US")
secondary = azure.core.ResourceGroup("secondary",
name="tfex-network-mapping-secondary",
location="East US")
vault = azure.recoveryservices.Vault("vault",
name="example-recovery-vault",
location=secondary.location,
resource_group_name=secondary.name,
sku="Standard")
primary_fabric = azure.siterecovery.Fabric("primary",
name="primary-fabric",
resource_group_name=secondary.name,
recovery_vault_name=vault.name,
location=primary.location)
secondary_fabric = azure.siterecovery.Fabric("secondary",
name="secondary-fabric",
resource_group_name=secondary.name,
recovery_vault_name=vault.name,
location=secondary.location,
opts=pulumi.ResourceOptions(depends_on=[primary_fabric]))
primary_virtual_network = azure.network.VirtualNetwork("primary",
name="network1",
resource_group_name=primary.name,
address_spaces=["192.168.1.0/24"],
location=primary.location)
secondary_virtual_network = azure.network.VirtualNetwork("secondary",
name="network2",
resource_group_name=secondary.name,
address_spaces=["192.168.2.0/24"],
location=secondary.location)
recovery_mapping = azure.siterecovery.NetworkMapping("recovery-mapping",
name="recovery-network-mapping-1",
resource_group_name=secondary.name,
recovery_vault_name=vault.name,
source_recovery_fabric_name="primary-fabric",
target_recovery_fabric_name="secondary-fabric",
source_network_id=primary_virtual_network.id,
target_network_id=secondary_virtual_network.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/recoveryservices"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/siterecovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
primary, err := core.NewResourceGroup(ctx, "primary", &core.ResourceGroupArgs{
Name: pulumi.String("tfex-network-mapping-primary"),
Location: pulumi.String("West US"),
})
if err != nil {
return err
}
secondary, err := core.NewResourceGroup(ctx, "secondary", &core.ResourceGroupArgs{
Name: pulumi.String("tfex-network-mapping-secondary"),
Location: pulumi.String("East US"),
})
if err != nil {
return err
}
vault, err := recoveryservices.NewVault(ctx, "vault", &recoveryservices.VaultArgs{
Name: pulumi.String("example-recovery-vault"),
Location: secondary.Location,
ResourceGroupName: secondary.Name,
Sku: pulumi.String("Standard"),
})
if err != nil {
return err
}
primaryFabric, err := siterecovery.NewFabric(ctx, "primary", &siterecovery.FabricArgs{
Name: pulumi.String("primary-fabric"),
ResourceGroupName: secondary.Name,
RecoveryVaultName: vault.Name,
Location: primary.Location,
})
if err != nil {
return err
}
_, err = siterecovery.NewFabric(ctx, "secondary", &siterecovery.FabricArgs{
Name: pulumi.String("secondary-fabric"),
ResourceGroupName: secondary.Name,
RecoveryVaultName: vault.Name,
Location: secondary.Location,
}, pulumi.DependsOn([]pulumi.Resource{
primaryFabric,
}))
if err != nil {
return err
}
primaryVirtualNetwork, err := network.NewVirtualNetwork(ctx, "primary", &network.VirtualNetworkArgs{
Name: pulumi.String("network1"),
ResourceGroupName: primary.Name,
AddressSpaces: pulumi.StringArray{
pulumi.String("192.168.1.0/24"),
},
Location: primary.Location,
})
if err != nil {
return err
}
secondaryVirtualNetwork, err := network.NewVirtualNetwork(ctx, "secondary", &network.VirtualNetworkArgs{
Name: pulumi.String("network2"),
ResourceGroupName: secondary.Name,
AddressSpaces: pulumi.StringArray{
pulumi.String("192.168.2.0/24"),
},
Location: secondary.Location,
})
if err != nil {
return err
}
_, err = siterecovery.NewNetworkMapping(ctx, "recovery-mapping", &siterecovery.NetworkMappingArgs{
Name: pulumi.String("recovery-network-mapping-1"),
ResourceGroupName: secondary.Name,
RecoveryVaultName: vault.Name,
SourceRecoveryFabricName: pulumi.String("primary-fabric"),
TargetRecoveryFabricName: pulumi.String("secondary-fabric"),
SourceNetworkId: primaryVirtualNetwork.ID(),
TargetNetworkId: secondaryVirtualNetwork.ID(),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var primary = new Azure.Core.ResourceGroup("primary", new()
{
Name = "tfex-network-mapping-primary",
Location = "West US",
});
var secondary = new Azure.Core.ResourceGroup("secondary", new()
{
Name = "tfex-network-mapping-secondary",
Location = "East US",
});
var vault = new Azure.RecoveryServices.Vault("vault", new()
{
Name = "example-recovery-vault",
Location = secondary.Location,
ResourceGroupName = secondary.Name,
Sku = "Standard",
});
var primaryFabric = new Azure.SiteRecovery.Fabric("primary", new()
{
Name = "primary-fabric",
ResourceGroupName = secondary.Name,
RecoveryVaultName = vault.Name,
Location = primary.Location,
});
var secondaryFabric = new Azure.SiteRecovery.Fabric("secondary", new()
{
Name = "secondary-fabric",
ResourceGroupName = secondary.Name,
RecoveryVaultName = vault.Name,
Location = secondary.Location,
}, new CustomResourceOptions
{
DependsOn =
{
primaryFabric,
},
});
var primaryVirtualNetwork = new Azure.Network.VirtualNetwork("primary", new()
{
Name = "network1",
ResourceGroupName = primary.Name,
AddressSpaces = new[]
{
"192.168.1.0/24",
},
Location = primary.Location,
});
var secondaryVirtualNetwork = new Azure.Network.VirtualNetwork("secondary", new()
{
Name = "network2",
ResourceGroupName = secondary.Name,
AddressSpaces = new[]
{
"192.168.2.0/24",
},
Location = secondary.Location,
});
var recovery_mapping = new Azure.SiteRecovery.NetworkMapping("recovery-mapping", new()
{
Name = "recovery-network-mapping-1",
ResourceGroupName = secondary.Name,
RecoveryVaultName = vault.Name,
SourceRecoveryFabricName = "primary-fabric",
TargetRecoveryFabricName = "secondary-fabric",
SourceNetworkId = primaryVirtualNetwork.Id,
TargetNetworkId = secondaryVirtualNetwork.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.recoveryservices.Vault;
import com.pulumi.azure.recoveryservices.VaultArgs;
import com.pulumi.azure.siterecovery.Fabric;
import com.pulumi.azure.siterecovery.FabricArgs;
import com.pulumi.azure.network.VirtualNetwork;
import com.pulumi.azure.network.VirtualNetworkArgs;
import com.pulumi.azure.siterecovery.NetworkMapping;
import com.pulumi.azure.siterecovery.NetworkMappingArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var primary = new ResourceGroup("primary", ResourceGroupArgs.builder()
.name("tfex-network-mapping-primary")
.location("West US")
.build());
var secondary = new ResourceGroup("secondary", ResourceGroupArgs.builder()
.name("tfex-network-mapping-secondary")
.location("East US")
.build());
var vault = new Vault("vault", VaultArgs.builder()
.name("example-recovery-vault")
.location(secondary.location())
.resourceGroupName(secondary.name())
.sku("Standard")
.build());
var primaryFabric = new Fabric("primaryFabric", FabricArgs.builder()
.name("primary-fabric")
.resourceGroupName(secondary.name())
.recoveryVaultName(vault.name())
.location(primary.location())
.build());
var secondaryFabric = new Fabric("secondaryFabric", FabricArgs.builder()
.name("secondary-fabric")
.resourceGroupName(secondary.name())
.recoveryVaultName(vault.name())
.location(secondary.location())
.build(), CustomResourceOptions.builder()
.dependsOn(primaryFabric)
.build());
var primaryVirtualNetwork = new VirtualNetwork("primaryVirtualNetwork", VirtualNetworkArgs.builder()
.name("network1")
.resourceGroupName(primary.name())
.addressSpaces("192.168.1.0/24")
.location(primary.location())
.build());
var secondaryVirtualNetwork = new VirtualNetwork("secondaryVirtualNetwork", VirtualNetworkArgs.builder()
.name("network2")
.resourceGroupName(secondary.name())
.addressSpaces("192.168.2.0/24")
.location(secondary.location())
.build());
var recovery_mapping = new NetworkMapping("recovery-mapping", NetworkMappingArgs.builder()
.name("recovery-network-mapping-1")
.resourceGroupName(secondary.name())
.recoveryVaultName(vault.name())
.sourceRecoveryFabricName("primary-fabric")
.targetRecoveryFabricName("secondary-fabric")
.sourceNetworkId(primaryVirtualNetwork.id())
.targetNetworkId(secondaryVirtualNetwork.id())
.build());
}
}
resources:
primary:
type: azure:core:ResourceGroup
properties:
name: tfex-network-mapping-primary
location: West US
secondary:
type: azure:core:ResourceGroup
properties:
name: tfex-network-mapping-secondary
location: East US
vault:
type: azure:recoveryservices:Vault
properties:
name: example-recovery-vault
location: ${secondary.location}
resourceGroupName: ${secondary.name}
sku: Standard
primaryFabric:
type: azure:siterecovery:Fabric
name: primary
properties:
name: primary-fabric
resourceGroupName: ${secondary.name}
recoveryVaultName: ${vault.name}
location: ${primary.location}
secondaryFabric:
type: azure:siterecovery:Fabric
name: secondary
properties:
name: secondary-fabric
resourceGroupName: ${secondary.name}
recoveryVaultName: ${vault.name}
location: ${secondary.location}
options:
dependson:
- ${primaryFabric}
primaryVirtualNetwork:
type: azure:network:VirtualNetwork
name: primary
properties:
name: network1
resourceGroupName: ${primary.name}
addressSpaces:
- 192.168.1.0/24
location: ${primary.location}
secondaryVirtualNetwork:
type: azure:network:VirtualNetwork
name: secondary
properties:
name: network2
resourceGroupName: ${secondary.name}
addressSpaces:
- 192.168.2.0/24
location: ${secondary.location}
recovery-mapping:
type: azure:siterecovery:NetworkMapping
properties:
name: recovery-network-mapping-1
resourceGroupName: ${secondary.name}
recoveryVaultName: ${vault.name}
sourceRecoveryFabricName: primary-fabric
targetRecoveryFabricName: secondary-fabric
sourceNetworkId: ${primaryVirtualNetwork.id}
targetNetworkId: ${secondaryVirtualNetwork.id}
Create NetworkMapping Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NetworkMapping(name: string, args: NetworkMappingArgs, opts?: CustomResourceOptions);
@overload
def NetworkMapping(resource_name: str,
args: NetworkMappingArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NetworkMapping(resource_name: str,
opts: Optional[ResourceOptions] = None,
recovery_vault_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
source_network_id: Optional[str] = None,
source_recovery_fabric_name: Optional[str] = None,
target_network_id: Optional[str] = None,
target_recovery_fabric_name: Optional[str] = None,
name: Optional[str] = None)
func NewNetworkMapping(ctx *Context, name string, args NetworkMappingArgs, opts ...ResourceOption) (*NetworkMapping, error)
public NetworkMapping(string name, NetworkMappingArgs args, CustomResourceOptions? opts = null)
public NetworkMapping(String name, NetworkMappingArgs args)
public NetworkMapping(String name, NetworkMappingArgs args, CustomResourceOptions options)
type: azure:siterecovery:NetworkMapping
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NetworkMappingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NetworkMappingArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NetworkMappingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkMappingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkMappingArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var networkMappingResource = new Azure.SiteRecovery.NetworkMapping("networkMappingResource", new()
{
RecoveryVaultName = "string",
ResourceGroupName = "string",
SourceNetworkId = "string",
SourceRecoveryFabricName = "string",
TargetNetworkId = "string",
TargetRecoveryFabricName = "string",
Name = "string",
});
example, err := siterecovery.NewNetworkMapping(ctx, "networkMappingResource", &siterecovery.NetworkMappingArgs{
RecoveryVaultName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
SourceNetworkId: pulumi.String("string"),
SourceRecoveryFabricName: pulumi.String("string"),
TargetNetworkId: pulumi.String("string"),
TargetRecoveryFabricName: pulumi.String("string"),
Name: pulumi.String("string"),
})
var networkMappingResource = new NetworkMapping("networkMappingResource", NetworkMappingArgs.builder()
.recoveryVaultName("string")
.resourceGroupName("string")
.sourceNetworkId("string")
.sourceRecoveryFabricName("string")
.targetNetworkId("string")
.targetRecoveryFabricName("string")
.name("string")
.build());
network_mapping_resource = azure.siterecovery.NetworkMapping("networkMappingResource",
recovery_vault_name="string",
resource_group_name="string",
source_network_id="string",
source_recovery_fabric_name="string",
target_network_id="string",
target_recovery_fabric_name="string",
name="string")
const networkMappingResource = new azure.siterecovery.NetworkMapping("networkMappingResource", {
recoveryVaultName: "string",
resourceGroupName: "string",
sourceNetworkId: "string",
sourceRecoveryFabricName: "string",
targetNetworkId: "string",
targetRecoveryFabricName: "string",
name: "string",
});
type: azure:siterecovery:NetworkMapping
properties:
name: string
recoveryVaultName: string
resourceGroupName: string
sourceNetworkId: string
sourceRecoveryFabricName: string
targetNetworkId: string
targetRecoveryFabricName: string
NetworkMapping Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The NetworkMapping resource accepts the following input properties:
- Recovery
Vault stringName - The name of the vault that should be updated. Changing this forces a new resource to be created.
- Resource
Group stringName - Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
- Source
Network stringId - The id of the primary network. Changing this forces a new resource to be created.
- Source
Recovery stringFabric Name - Specifies the ASR fabric where mapping should be created. Changing this forces a new resource to be created.
- Target
Network stringId - The id of the recovery network. Changing this forces a new resource to be created.
- Target
Recovery stringFabric Name - The Azure Site Recovery fabric object corresponding to the recovery Azure region. Changing this forces a new resource to be created.
- Name string
- The name of the network mapping. Changing this forces a new resource to be created.
- Recovery
Vault stringName - The name of the vault that should be updated. Changing this forces a new resource to be created.
- Resource
Group stringName - Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
- Source
Network stringId - The id of the primary network. Changing this forces a new resource to be created.
- Source
Recovery stringFabric Name - Specifies the ASR fabric where mapping should be created. Changing this forces a new resource to be created.
- Target
Network stringId - The id of the recovery network. Changing this forces a new resource to be created.
- Target
Recovery stringFabric Name - The Azure Site Recovery fabric object corresponding to the recovery Azure region. Changing this forces a new resource to be created.
- Name string
- The name of the network mapping. Changing this forces a new resource to be created.
- recovery
Vault StringName - The name of the vault that should be updated. Changing this forces a new resource to be created.
- resource
Group StringName - Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
- source
Network StringId - The id of the primary network. Changing this forces a new resource to be created.
- source
Recovery StringFabric Name - Specifies the ASR fabric where mapping should be created. Changing this forces a new resource to be created.
- target
Network StringId - The id of the recovery network. Changing this forces a new resource to be created.
- target
Recovery StringFabric Name - The Azure Site Recovery fabric object corresponding to the recovery Azure region. Changing this forces a new resource to be created.
- name String
- The name of the network mapping. Changing this forces a new resource to be created.
- recovery
Vault stringName - The name of the vault that should be updated. Changing this forces a new resource to be created.
- resource
Group stringName - Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
- source
Network stringId - The id of the primary network. Changing this forces a new resource to be created.
- source
Recovery stringFabric Name - Specifies the ASR fabric where mapping should be created. Changing this forces a new resource to be created.
- target
Network stringId - The id of the recovery network. Changing this forces a new resource to be created.
- target
Recovery stringFabric Name - The Azure Site Recovery fabric object corresponding to the recovery Azure region. Changing this forces a new resource to be created.
- name string
- The name of the network mapping. Changing this forces a new resource to be created.
- recovery_
vault_ strname - The name of the vault that should be updated. Changing this forces a new resource to be created.
- resource_
group_ strname - Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
- source_
network_ strid - The id of the primary network. Changing this forces a new resource to be created.
- source_
recovery_ strfabric_ name - Specifies the ASR fabric where mapping should be created. Changing this forces a new resource to be created.
- target_
network_ strid - The id of the recovery network. Changing this forces a new resource to be created.
- target_
recovery_ strfabric_ name - The Azure Site Recovery fabric object corresponding to the recovery Azure region. Changing this forces a new resource to be created.
- name str
- The name of the network mapping. Changing this forces a new resource to be created.
- recovery
Vault StringName - The name of the vault that should be updated. Changing this forces a new resource to be created.
- resource
Group StringName - Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
- source
Network StringId - The id of the primary network. Changing this forces a new resource to be created.
- source
Recovery StringFabric Name - Specifies the ASR fabric where mapping should be created. Changing this forces a new resource to be created.
- target
Network StringId - The id of the recovery network. Changing this forces a new resource to be created.
- target
Recovery StringFabric Name - The Azure Site Recovery fabric object corresponding to the recovery Azure region. Changing this forces a new resource to be created.
- name String
- The name of the network mapping. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the NetworkMapping resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NetworkMapping Resource
Get an existing NetworkMapping resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NetworkMappingState, opts?: CustomResourceOptions): NetworkMapping
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
recovery_vault_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
source_network_id: Optional[str] = None,
source_recovery_fabric_name: Optional[str] = None,
target_network_id: Optional[str] = None,
target_recovery_fabric_name: Optional[str] = None) -> NetworkMapping
func GetNetworkMapping(ctx *Context, name string, id IDInput, state *NetworkMappingState, opts ...ResourceOption) (*NetworkMapping, error)
public static NetworkMapping Get(string name, Input<string> id, NetworkMappingState? state, CustomResourceOptions? opts = null)
public static NetworkMapping get(String name, Output<String> id, NetworkMappingState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Name string
- The name of the network mapping. Changing this forces a new resource to be created.
- Recovery
Vault stringName - The name of the vault that should be updated. Changing this forces a new resource to be created.
- Resource
Group stringName - Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
- Source
Network stringId - The id of the primary network. Changing this forces a new resource to be created.
- Source
Recovery stringFabric Name - Specifies the ASR fabric where mapping should be created. Changing this forces a new resource to be created.
- Target
Network stringId - The id of the recovery network. Changing this forces a new resource to be created.
- Target
Recovery stringFabric Name - The Azure Site Recovery fabric object corresponding to the recovery Azure region. Changing this forces a new resource to be created.
- Name string
- The name of the network mapping. Changing this forces a new resource to be created.
- Recovery
Vault stringName - The name of the vault that should be updated. Changing this forces a new resource to be created.
- Resource
Group stringName - Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
- Source
Network stringId - The id of the primary network. Changing this forces a new resource to be created.
- Source
Recovery stringFabric Name - Specifies the ASR fabric where mapping should be created. Changing this forces a new resource to be created.
- Target
Network stringId - The id of the recovery network. Changing this forces a new resource to be created.
- Target
Recovery stringFabric Name - The Azure Site Recovery fabric object corresponding to the recovery Azure region. Changing this forces a new resource to be created.
- name String
- The name of the network mapping. Changing this forces a new resource to be created.
- recovery
Vault StringName - The name of the vault that should be updated. Changing this forces a new resource to be created.
- resource
Group StringName - Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
- source
Network StringId - The id of the primary network. Changing this forces a new resource to be created.
- source
Recovery StringFabric Name - Specifies the ASR fabric where mapping should be created. Changing this forces a new resource to be created.
- target
Network StringId - The id of the recovery network. Changing this forces a new resource to be created.
- target
Recovery StringFabric Name - The Azure Site Recovery fabric object corresponding to the recovery Azure region. Changing this forces a new resource to be created.
- name string
- The name of the network mapping. Changing this forces a new resource to be created.
- recovery
Vault stringName - The name of the vault that should be updated. Changing this forces a new resource to be created.
- resource
Group stringName - Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
- source
Network stringId - The id of the primary network. Changing this forces a new resource to be created.
- source
Recovery stringFabric Name - Specifies the ASR fabric where mapping should be created. Changing this forces a new resource to be created.
- target
Network stringId - The id of the recovery network. Changing this forces a new resource to be created.
- target
Recovery stringFabric Name - The Azure Site Recovery fabric object corresponding to the recovery Azure region. Changing this forces a new resource to be created.
- name str
- The name of the network mapping. Changing this forces a new resource to be created.
- recovery_
vault_ strname - The name of the vault that should be updated. Changing this forces a new resource to be created.
- resource_
group_ strname - Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
- source_
network_ strid - The id of the primary network. Changing this forces a new resource to be created.
- source_
recovery_ strfabric_ name - Specifies the ASR fabric where mapping should be created. Changing this forces a new resource to be created.
- target_
network_ strid - The id of the recovery network. Changing this forces a new resource to be created.
- target_
recovery_ strfabric_ name - The Azure Site Recovery fabric object corresponding to the recovery Azure region. Changing this forces a new resource to be created.
- name String
- The name of the network mapping. Changing this forces a new resource to be created.
- recovery
Vault StringName - The name of the vault that should be updated. Changing this forces a new resource to be created.
- resource
Group StringName - Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.
- source
Network StringId - The id of the primary network. Changing this forces a new resource to be created.
- source
Recovery StringFabric Name - Specifies the ASR fabric where mapping should be created. Changing this forces a new resource to be created.
- target
Network StringId - The id of the recovery network. Changing this forces a new resource to be created.
- target
Recovery StringFabric Name - The Azure Site Recovery fabric object corresponding to the recovery Azure region. Changing this forces a new resource to be created.
Import
Site Recovery Network Mapping can be imported using the resource id
, e.g.
$ pulumi import azure:siterecovery/networkMapping:NetworkMapping mymapping /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-name/providers/Microsoft.RecoveryServices/vaults/recovery-vault-name/replicationFabrics/primary-fabric-name/replicationNetworks/azureNetwork/replicationNetworkMappings/mapping-name
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.