1. Packages
  2. Azure Native v1
  3. API Docs
  4. recoveryservices
  5. ReplicationNetworkMapping
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.recoveryservices.ReplicationNetworkMapping

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    Network Mapping model. Ideally it should have been possible to inherit this class from prev version in InheritedModels as long as there is no difference in structure or method signature. Since there were no base Models for certain fields and methods viz NetworkMappingProperties and Load with required return type, the class has been introduced in its entirety with references to base models to facilitate extensions in subsequent versions. API Version: 2018-07-10.

    Example Usage

    Creates network mapping.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var replicationNetworkMapping = new AzureNative.RecoveryServices.ReplicationNetworkMapping("replicationNetworkMapping", new()
        {
            FabricName = "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac",
            NetworkMappingName = "corpe2amap",
            NetworkName = "e2267b5c-2650-49bd-ab3f-d66aae694c06",
            Properties = new AzureNative.RecoveryServices.Inputs.CreateNetworkMappingInputPropertiesArgs
            {
                FabricSpecificDetails = new AzureNative.RecoveryServices.Inputs.VmmToAzureCreateNetworkMappingInputArgs
                {
                    InstanceType = "VmmToAzure",
                },
                RecoveryFabricName = "Microsoft Azure",
                RecoveryNetworkId = "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai",
            },
            ResourceGroupName = "srcBvte2a14C27",
            ResourceName = "srce2avaultbvtaC27",
        });
    
    });
    
    package main
    
    import (
    	recoveryservices "github.com/pulumi/pulumi-azure-native-sdk/recoveryservices"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := recoveryservices.NewReplicationNetworkMapping(ctx, "replicationNetworkMapping", &recoveryservices.ReplicationNetworkMappingArgs{
    			FabricName:         pulumi.String("b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac"),
    			NetworkMappingName: pulumi.String("corpe2amap"),
    			NetworkName:        pulumi.String("e2267b5c-2650-49bd-ab3f-d66aae694c06"),
    			Properties: recoveryservices.NetworkMappingPropertiesResponse{
    				FabricSpecificDetails: recoveryservices.VmmToAzureCreateNetworkMappingInput{
    					InstanceType: "VmmToAzure",
    				},
    				RecoveryFabricName: pulumi.String("Microsoft Azure"),
    				RecoveryNetworkId:  pulumi.String("/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai"),
    			},
    			ResourceGroupName: pulumi.String("srcBvte2a14C27"),
    			ResourceName:      pulumi.String("srce2avaultbvtaC27"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.recoveryservices.ReplicationNetworkMapping;
    import com.pulumi.azurenative.recoveryservices.ReplicationNetworkMappingArgs;
    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 replicationNetworkMapping = new ReplicationNetworkMapping("replicationNetworkMapping", ReplicationNetworkMappingArgs.builder()        
                .fabricName("b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac")
                .networkMappingName("corpe2amap")
                .networkName("e2267b5c-2650-49bd-ab3f-d66aae694c06")
                .properties(Map.ofEntries(
                    Map.entry("fabricSpecificDetails", Map.of("instanceType", "VmmToAzure")),
                    Map.entry("recoveryFabricName", "Microsoft Azure"),
                    Map.entry("recoveryNetworkId", "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai")
                ))
                .resourceGroupName("srcBvte2a14C27")
                .resourceName("srce2avaultbvtaC27")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    replication_network_mapping = azure_native.recoveryservices.ReplicationNetworkMapping("replicationNetworkMapping",
        fabric_name="b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac",
        network_mapping_name="corpe2amap",
        network_name="e2267b5c-2650-49bd-ab3f-d66aae694c06",
        properties=azure_native.recoveryservices.NetworkMappingPropertiesResponseArgs(
            fabric_specific_details=azure_native.recoveryservices.VmmToAzureCreateNetworkMappingInputArgs(
                instance_type="VmmToAzure",
            ),
            recovery_fabric_name="Microsoft Azure",
            recovery_network_id="/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai",
        ),
        resource_group_name="srcBvte2a14C27",
        resource_name_="srce2avaultbvtaC27")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const replicationNetworkMapping = new azure_native.recoveryservices.ReplicationNetworkMapping("replicationNetworkMapping", {
        fabricName: "b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac",
        networkMappingName: "corpe2amap",
        networkName: "e2267b5c-2650-49bd-ab3f-d66aae694c06",
        properties: {
            fabricSpecificDetails: {
                instanceType: "VmmToAzure",
            },
            recoveryFabricName: "Microsoft Azure",
            recoveryNetworkId: "/subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai",
        },
        resourceGroupName: "srcBvte2a14C27",
        resourceName: "srce2avaultbvtaC27",
    });
    
    resources:
      replicationNetworkMapping:
        type: azure-native:recoveryservices:ReplicationNetworkMapping
        properties:
          fabricName: b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac
          networkMappingName: corpe2amap
          networkName: e2267b5c-2650-49bd-ab3f-d66aae694c06
          properties:
            fabricSpecificDetails:
              instanceType: VmmToAzure
            recoveryFabricName: Microsoft Azure
            recoveryNetworkId: /subscriptions/c183865e-6077-46f2-a3b1-deb0f4f4650a/resourceGroups/siterecoveryProd1/providers/Microsoft.Network/virtualNetworks/vnetavrai
          resourceGroupName: srcBvte2a14C27
          resourceName: srce2avaultbvtaC27
    

    Create ReplicationNetworkMapping Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ReplicationNetworkMapping(name: string, args: ReplicationNetworkMappingArgs, opts?: CustomResourceOptions);
    @overload
    def ReplicationNetworkMapping(resource_name: str,
                                  args: ReplicationNetworkMappingArgs,
                                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def ReplicationNetworkMapping(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  fabric_name: Optional[str] = None,
                                  network_name: Optional[str] = None,
                                  resource_group_name: Optional[str] = None,
                                  resource_name_: Optional[str] = None,
                                  network_mapping_name: Optional[str] = None,
                                  properties: Optional[CreateNetworkMappingInputPropertiesArgs] = None)
    func NewReplicationNetworkMapping(ctx *Context, name string, args ReplicationNetworkMappingArgs, opts ...ResourceOption) (*ReplicationNetworkMapping, error)
    public ReplicationNetworkMapping(string name, ReplicationNetworkMappingArgs args, CustomResourceOptions? opts = null)
    public ReplicationNetworkMapping(String name, ReplicationNetworkMappingArgs args)
    public ReplicationNetworkMapping(String name, ReplicationNetworkMappingArgs args, CustomResourceOptions options)
    
    type: azure-native:recoveryservices:ReplicationNetworkMapping
    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 ReplicationNetworkMappingArgs
    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 ReplicationNetworkMappingArgs
    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 ReplicationNetworkMappingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ReplicationNetworkMappingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ReplicationNetworkMappingArgs
    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 replicationNetworkMappingResource = new AzureNative.Recoveryservices.ReplicationNetworkMapping("replicationNetworkMappingResource", new()
    {
        FabricName = "string",
        NetworkName = "string",
        ResourceGroupName = "string",
        ResourceName = "string",
        NetworkMappingName = "string",
        Properties = 
        {
            { "fabricSpecificDetails", 
            {
                { "instanceType", "AzureToAzure" },
                { "primaryNetworkId", "string" },
            } },
            { "recoveryFabricName", "string" },
            { "recoveryNetworkId", "string" },
        },
    });
    
    example, err := recoveryservices.NewReplicationNetworkMapping(ctx, "replicationNetworkMappingResource", &recoveryservices.ReplicationNetworkMappingArgs{
    	FabricName:         "string",
    	NetworkName:        "string",
    	ResourceGroupName:  "string",
    	ResourceName:       "string",
    	NetworkMappingName: "string",
    	Properties: map[string]interface{}{
    		"fabricSpecificDetails": map[string]interface{}{
    			"instanceType":     "AzureToAzure",
    			"primaryNetworkId": "string",
    		},
    		"recoveryFabricName": "string",
    		"recoveryNetworkId":  "string",
    	},
    })
    
    var replicationNetworkMappingResource = new ReplicationNetworkMapping("replicationNetworkMappingResource", ReplicationNetworkMappingArgs.builder()
        .fabricName("string")
        .networkName("string")
        .resourceGroupName("string")
        .resourceName("string")
        .networkMappingName("string")
        .properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
        .build());
    
    replication_network_mapping_resource = azure_native.recoveryservices.ReplicationNetworkMapping("replicationNetworkMappingResource",
        fabric_name=string,
        network_name=string,
        resource_group_name=string,
        resource_name_=string,
        network_mapping_name=string,
        properties={
            fabricSpecificDetails: {
                instanceType: AzureToAzure,
                primaryNetworkId: string,
            },
            recoveryFabricName: string,
            recoveryNetworkId: string,
        })
    
    const replicationNetworkMappingResource = new azure_native.recoveryservices.ReplicationNetworkMapping("replicationNetworkMappingResource", {
        fabricName: "string",
        networkName: "string",
        resourceGroupName: "string",
        resourceName: "string",
        networkMappingName: "string",
        properties: {
            fabricSpecificDetails: {
                instanceType: "AzureToAzure",
                primaryNetworkId: "string",
            },
            recoveryFabricName: "string",
            recoveryNetworkId: "string",
        },
    });
    
    type: azure-native:recoveryservices:ReplicationNetworkMapping
    properties:
        fabricName: string
        networkMappingName: string
        networkName: string
        properties:
            fabricSpecificDetails:
                instanceType: AzureToAzure
                primaryNetworkId: string
            recoveryFabricName: string
            recoveryNetworkId: string
        resourceGroupName: string
        resourceName: string
    

    ReplicationNetworkMapping 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 ReplicationNetworkMapping resource accepts the following input properties:

    FabricName string
    Primary fabric name.
    NetworkName string
    Primary network name.
    ResourceGroupName string
    The name of the resource group where the recovery services vault is present.
    ResourceName string
    The name of the recovery services vault.
    NetworkMappingName string
    Network mapping name.
    Properties Pulumi.AzureNative.RecoveryServices.Inputs.CreateNetworkMappingInputProperties
    Input properties for creating network mapping.
    FabricName string
    Primary fabric name.
    NetworkName string
    Primary network name.
    ResourceGroupName string
    The name of the resource group where the recovery services vault is present.
    ResourceName string
    The name of the recovery services vault.
    NetworkMappingName string
    Network mapping name.
    Properties CreateNetworkMappingInputPropertiesArgs
    Input properties for creating network mapping.
    fabricName String
    Primary fabric name.
    networkName String
    Primary network name.
    resourceGroupName String
    The name of the resource group where the recovery services vault is present.
    resourceName String
    The name of the recovery services vault.
    networkMappingName String
    Network mapping name.
    properties CreateNetworkMappingInputProperties
    Input properties for creating network mapping.
    fabricName string
    Primary fabric name.
    networkName string
    Primary network name.
    resourceGroupName string
    The name of the resource group where the recovery services vault is present.
    resourceName string
    The name of the recovery services vault.
    networkMappingName string
    Network mapping name.
    properties CreateNetworkMappingInputProperties
    Input properties for creating network mapping.
    fabric_name str
    Primary fabric name.
    network_name str
    Primary network name.
    resource_group_name str
    The name of the resource group where the recovery services vault is present.
    resource_name str
    The name of the recovery services vault.
    network_mapping_name str
    Network mapping name.
    properties CreateNetworkMappingInputPropertiesArgs
    Input properties for creating network mapping.
    fabricName String
    Primary fabric name.
    networkName String
    Primary network name.
    resourceGroupName String
    The name of the resource group where the recovery services vault is present.
    resourceName String
    The name of the recovery services vault.
    networkMappingName String
    Network mapping name.
    properties Property Map
    Input properties for creating network mapping.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ReplicationNetworkMapping resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource Name
    Type string
    Resource Type
    Location string
    Resource Location
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Resource Name
    Type string
    Resource Type
    Location string
    Resource Location
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource Name
    type String
    Resource Type
    location String
    Resource Location
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Resource Name
    type string
    Resource Type
    location string
    Resource Location
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Resource Name
    type str
    Resource Type
    location str
    Resource Location
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Resource Name
    type String
    Resource Type
    location String
    Resource Location

    Supporting Types

    AzureToAzureCreateNetworkMappingInput, AzureToAzureCreateNetworkMappingInputArgs

    PrimaryNetworkId string
    The primary azure vnet Id.
    PrimaryNetworkId string
    The primary azure vnet Id.
    primaryNetworkId String
    The primary azure vnet Id.
    primaryNetworkId string
    The primary azure vnet Id.
    primary_network_id str
    The primary azure vnet Id.
    primaryNetworkId String
    The primary azure vnet Id.

    AzureToAzureNetworkMappingSettingsResponse, AzureToAzureNetworkMappingSettingsResponseArgs

    PrimaryFabricLocation string
    The primary fabric location.
    RecoveryFabricLocation string
    The recovery fabric location.
    PrimaryFabricLocation string
    The primary fabric location.
    RecoveryFabricLocation string
    The recovery fabric location.
    primaryFabricLocation String
    The primary fabric location.
    recoveryFabricLocation String
    The recovery fabric location.
    primaryFabricLocation string
    The primary fabric location.
    recoveryFabricLocation string
    The recovery fabric location.
    primary_fabric_location str
    The primary fabric location.
    recovery_fabric_location str
    The recovery fabric location.
    primaryFabricLocation String
    The primary fabric location.
    recoveryFabricLocation String
    The recovery fabric location.

    CreateNetworkMappingInputProperties, CreateNetworkMappingInputPropertiesArgs

    fabricSpecificDetails Property Map | Property Map | Property Map
    Fabric specific input properties.
    recoveryFabricName String
    Recovery fabric Name.
    recoveryNetworkId String
    Recovery network Id.

    NetworkMappingPropertiesResponse, NetworkMappingPropertiesResponseArgs

    FabricSpecificSettings Pulumi.AzureNative.RecoveryServices.Inputs.AzureToAzureNetworkMappingSettingsResponse | Pulumi.AzureNative.RecoveryServices.Inputs.VmmToAzureNetworkMappingSettingsResponse | Pulumi.AzureNative.RecoveryServices.Inputs.VmmToVmmNetworkMappingSettingsResponse
    The fabric specific settings.
    PrimaryFabricFriendlyName string
    The primary fabric friendly name.
    PrimaryNetworkFriendlyName string
    The primary network friendly name.
    PrimaryNetworkId string
    The primary network id for network mapping.
    RecoveryFabricArmId string
    The recovery fabric ARM id.
    RecoveryFabricFriendlyName string
    The recovery fabric friendly name.
    RecoveryNetworkFriendlyName string
    The recovery network friendly name.
    RecoveryNetworkId string
    The recovery network id for network mapping.
    State string
    The pairing state for network mapping.
    FabricSpecificSettings AzureToAzureNetworkMappingSettingsResponse | VmmToAzureNetworkMappingSettingsResponse | VmmToVmmNetworkMappingSettingsResponse
    The fabric specific settings.
    PrimaryFabricFriendlyName string
    The primary fabric friendly name.
    PrimaryNetworkFriendlyName string
    The primary network friendly name.
    PrimaryNetworkId string
    The primary network id for network mapping.
    RecoveryFabricArmId string
    The recovery fabric ARM id.
    RecoveryFabricFriendlyName string
    The recovery fabric friendly name.
    RecoveryNetworkFriendlyName string
    The recovery network friendly name.
    RecoveryNetworkId string
    The recovery network id for network mapping.
    State string
    The pairing state for network mapping.
    fabricSpecificSettings AzureToAzureNetworkMappingSettingsResponse | VmmToAzureNetworkMappingSettingsResponse | VmmToVmmNetworkMappingSettingsResponse
    The fabric specific settings.
    primaryFabricFriendlyName String
    The primary fabric friendly name.
    primaryNetworkFriendlyName String
    The primary network friendly name.
    primaryNetworkId String
    The primary network id for network mapping.
    recoveryFabricArmId String
    The recovery fabric ARM id.
    recoveryFabricFriendlyName String
    The recovery fabric friendly name.
    recoveryNetworkFriendlyName String
    The recovery network friendly name.
    recoveryNetworkId String
    The recovery network id for network mapping.
    state String
    The pairing state for network mapping.
    fabricSpecificSettings AzureToAzureNetworkMappingSettingsResponse | VmmToAzureNetworkMappingSettingsResponse | VmmToVmmNetworkMappingSettingsResponse
    The fabric specific settings.
    primaryFabricFriendlyName string
    The primary fabric friendly name.
    primaryNetworkFriendlyName string
    The primary network friendly name.
    primaryNetworkId string
    The primary network id for network mapping.
    recoveryFabricArmId string
    The recovery fabric ARM id.
    recoveryFabricFriendlyName string
    The recovery fabric friendly name.
    recoveryNetworkFriendlyName string
    The recovery network friendly name.
    recoveryNetworkId string
    The recovery network id for network mapping.
    state string
    The pairing state for network mapping.
    fabric_specific_settings AzureToAzureNetworkMappingSettingsResponse | VmmToAzureNetworkMappingSettingsResponse | VmmToVmmNetworkMappingSettingsResponse
    The fabric specific settings.
    primary_fabric_friendly_name str
    The primary fabric friendly name.
    primary_network_friendly_name str
    The primary network friendly name.
    primary_network_id str
    The primary network id for network mapping.
    recovery_fabric_arm_id str
    The recovery fabric ARM id.
    recovery_fabric_friendly_name str
    The recovery fabric friendly name.
    recovery_network_friendly_name str
    The recovery network friendly name.
    recovery_network_id str
    The recovery network id for network mapping.
    state str
    The pairing state for network mapping.
    fabricSpecificSettings Property Map | Property Map | Property Map
    The fabric specific settings.
    primaryFabricFriendlyName String
    The primary fabric friendly name.
    primaryNetworkFriendlyName String
    The primary network friendly name.
    primaryNetworkId String
    The primary network id for network mapping.
    recoveryFabricArmId String
    The recovery fabric ARM id.
    recoveryFabricFriendlyName String
    The recovery fabric friendly name.
    recoveryNetworkFriendlyName String
    The recovery network friendly name.
    recoveryNetworkId String
    The recovery network id for network mapping.
    state String
    The pairing state for network mapping.

    VmmToAzureCreateNetworkMappingInput, VmmToAzureCreateNetworkMappingInputArgs

    VmmToAzureNetworkMappingSettingsResponse, VmmToAzureNetworkMappingSettingsResponseArgs

    VmmToVmmCreateNetworkMappingInput, VmmToVmmCreateNetworkMappingInputArgs

    VmmToVmmNetworkMappingSettingsResponse, VmmToVmmNetworkMappingSettingsResponseArgs

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:recoveryservices:ReplicationNetworkMapping corpe2amap /Subscriptions/9112a37f-0f3e-46ec-9c00-060c6edca071/resourceGroups/srcBvte2a14C27/providers/Microsoft.RecoveryServices/vaults/srce2avaultbvtaC27/replicationFabrics/b0cef6e9a4437b81803d0b55ada4f700ab66caae59c35d62723a1589c0cd13ac/replicationNetworks/e2267b5c-2650-49bd-ab3f-d66aae694c06/replicationNetworkMappings/corpe2amap 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi