azure-native.recoveryservices.ReplicationNetworkMapping
Explore with Pulumi AI
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 * 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",
});
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")
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ReplicationNetworkMapping resource accepts the following input properties:
- FabricName string
- Primary fabric name.
- NetworkName string
- Primary network name.
- ResourceGroup stringName 
- The name of the resource group where the recovery services vault is present.
- ResourceName string
- The name of the recovery services vault.
- NetworkMapping stringName 
- Network mapping name.
- Properties
Pulumi.Azure Native. Recovery Services. Inputs. Create Network Mapping Input Properties 
- Input properties for creating network mapping.
- FabricName string
- Primary fabric name.
- NetworkName string
- Primary network name.
- ResourceGroup stringName 
- The name of the resource group where the recovery services vault is present.
- ResourceName string
- The name of the recovery services vault.
- NetworkMapping stringName 
- Network mapping name.
- Properties
CreateNetwork Mapping Input Properties Args 
- Input properties for creating network mapping.
- fabricName String
- Primary fabric name.
- networkName String
- Primary network name.
- resourceGroup StringName 
- The name of the resource group where the recovery services vault is present.
- resourceName String
- The name of the recovery services vault.
- networkMapping StringName 
- Network mapping name.
- properties
CreateNetwork Mapping Input Properties 
- Input properties for creating network mapping.
- fabricName string
- Primary fabric name.
- networkName string
- Primary network name.
- resourceGroup stringName 
- The name of the resource group where the recovery services vault is present.
- resourceName string
- The name of the recovery services vault.
- networkMapping stringName 
- Network mapping name.
- properties
CreateNetwork Mapping Input Properties 
- Input properties for creating network mapping.
- fabric_name str
- Primary fabric name.
- network_name str
- Primary network name.
- resource_group_ strname 
- 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_ strname 
- Network mapping name.
- properties
CreateNetwork Mapping Input Properties Args 
- Input properties for creating network mapping.
- fabricName String
- Primary fabric name.
- networkName String
- Primary network name.
- resourceGroup StringName 
- The name of the resource group where the recovery services vault is present.
- resourceName String
- The name of the recovery services vault.
- networkMapping StringName 
- 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:
Supporting Types
AzureToAzureCreateNetworkMappingInput, AzureToAzureCreateNetworkMappingInputArgs              
- PrimaryNetwork stringId 
- The primary azure vnet Id.
- PrimaryNetwork stringId 
- The primary azure vnet Id.
- primaryNetwork StringId 
- The primary azure vnet Id.
- primaryNetwork stringId 
- The primary azure vnet Id.
- primary_network_ strid 
- The primary azure vnet Id.
- primaryNetwork StringId 
- The primary azure vnet Id.
AzureToAzureNetworkMappingSettingsResponse, AzureToAzureNetworkMappingSettingsResponseArgs              
- PrimaryFabric stringLocation 
- The primary fabric location.
- RecoveryFabric stringLocation 
- The recovery fabric location.
- PrimaryFabric stringLocation 
- The primary fabric location.
- RecoveryFabric stringLocation 
- The recovery fabric location.
- primaryFabric StringLocation 
- The primary fabric location.
- recoveryFabric StringLocation 
- The recovery fabric location.
- primaryFabric stringLocation 
- The primary fabric location.
- recoveryFabric stringLocation 
- The recovery fabric location.
- primary_fabric_ strlocation 
- The primary fabric location.
- recovery_fabric_ strlocation 
- The recovery fabric location.
- primaryFabric StringLocation 
- The primary fabric location.
- recoveryFabric StringLocation 
- The recovery fabric location.
CreateNetworkMappingInputProperties, CreateNetworkMappingInputPropertiesArgs          
- FabricSpecific Pulumi.Details Azure | Pulumi.Native. Recovery Services. Inputs. Azure To Azure Create Network Mapping Input Azure | Pulumi.Native. Recovery Services. Inputs. Vmm To Azure Create Network Mapping Input Azure Native. Recovery Services. Inputs. Vmm To Vmm Create Network Mapping Input 
- Fabric specific input properties.
- RecoveryFabric stringName 
- Recovery fabric Name.
- RecoveryNetwork stringId 
- Recovery network Id.
- FabricSpecific AzureDetails To | VmmAzure Create Network Mapping Input To | VmmAzure Create Network Mapping Input To Vmm Create Network Mapping Input 
- Fabric specific input properties.
- RecoveryFabric stringName 
- Recovery fabric Name.
- RecoveryNetwork stringId 
- Recovery network Id.
- fabricSpecific AzureDetails To | VmmAzure Create Network Mapping Input To | VmmAzure Create Network Mapping Input To Vmm Create Network Mapping Input 
- Fabric specific input properties.
- recoveryFabric StringName 
- Recovery fabric Name.
- recoveryNetwork StringId 
- Recovery network Id.
- fabricSpecific AzureDetails To | VmmAzure Create Network Mapping Input To | VmmAzure Create Network Mapping Input To Vmm Create Network Mapping Input 
- Fabric specific input properties.
- recoveryFabric stringName 
- Recovery fabric Name.
- recoveryNetwork stringId 
- Recovery network Id.
- fabric_specific_ Azuredetails To | VmmAzure Create Network Mapping Input To | VmmAzure Create Network Mapping Input To Vmm Create Network Mapping Input 
- Fabric specific input properties.
- recovery_fabric_ strname 
- Recovery fabric Name.
- recovery_network_ strid 
- Recovery network Id.
- fabricSpecific Property Map | Property Map | Property MapDetails 
- Fabric specific input properties.
- recoveryFabric StringName 
- Recovery fabric Name.
- recoveryNetwork StringId 
- Recovery network Id.
NetworkMappingPropertiesResponse, NetworkMappingPropertiesResponseArgs        
- FabricSpecific Pulumi.Settings Azure | Pulumi.Native. Recovery Services. Inputs. Azure To Azure Network Mapping Settings Response Azure | Pulumi.Native. Recovery Services. Inputs. Vmm To Azure Network Mapping Settings Response Azure Native. Recovery Services. Inputs. Vmm To Vmm Network Mapping Settings Response 
- The fabric specific settings.
- PrimaryFabric stringFriendly Name 
- The primary fabric friendly name.
- PrimaryNetwork stringFriendly Name 
- The primary network friendly name.
- PrimaryNetwork stringId 
- The primary network id for network mapping.
- RecoveryFabric stringArm Id 
- The recovery fabric ARM id.
- RecoveryFabric stringFriendly Name 
- The recovery fabric friendly name.
- RecoveryNetwork stringFriendly Name 
- The recovery network friendly name.
- RecoveryNetwork stringId 
- The recovery network id for network mapping.
- State string
- The pairing state for network mapping.
- FabricSpecific AzureSettings To | VmmAzure Network Mapping Settings Response To | VmmAzure Network Mapping Settings Response To Vmm Network Mapping Settings Response 
- The fabric specific settings.
- PrimaryFabric stringFriendly Name 
- The primary fabric friendly name.
- PrimaryNetwork stringFriendly Name 
- The primary network friendly name.
- PrimaryNetwork stringId 
- The primary network id for network mapping.
- RecoveryFabric stringArm Id 
- The recovery fabric ARM id.
- RecoveryFabric stringFriendly Name 
- The recovery fabric friendly name.
- RecoveryNetwork stringFriendly Name 
- The recovery network friendly name.
- RecoveryNetwork stringId 
- The recovery network id for network mapping.
- State string
- The pairing state for network mapping.
- fabricSpecific AzureSettings To | VmmAzure Network Mapping Settings Response To | VmmAzure Network Mapping Settings Response To Vmm Network Mapping Settings Response 
- The fabric specific settings.
- primaryFabric StringFriendly Name 
- The primary fabric friendly name.
- primaryNetwork StringFriendly Name 
- The primary network friendly name.
- primaryNetwork StringId 
- The primary network id for network mapping.
- recoveryFabric StringArm Id 
- The recovery fabric ARM id.
- recoveryFabric StringFriendly Name 
- The recovery fabric friendly name.
- recoveryNetwork StringFriendly Name 
- The recovery network friendly name.
- recoveryNetwork StringId 
- The recovery network id for network mapping.
- state String
- The pairing state for network mapping.
- fabricSpecific AzureSettings To | VmmAzure Network Mapping Settings Response To | VmmAzure Network Mapping Settings Response To Vmm Network Mapping Settings Response 
- The fabric specific settings.
- primaryFabric stringFriendly Name 
- The primary fabric friendly name.
- primaryNetwork stringFriendly Name 
- The primary network friendly name.
- primaryNetwork stringId 
- The primary network id for network mapping.
- recoveryFabric stringArm Id 
- The recovery fabric ARM id.
- recoveryFabric stringFriendly Name 
- The recovery fabric friendly name.
- recoveryNetwork stringFriendly Name 
- The recovery network friendly name.
- recoveryNetwork stringId 
- The recovery network id for network mapping.
- state string
- The pairing state for network mapping.
- fabric_specific_ Azuresettings To | VmmAzure Network Mapping Settings Response To | VmmAzure Network Mapping Settings Response To Vmm Network Mapping Settings Response 
- The fabric specific settings.
- primary_fabric_ strfriendly_ name 
- The primary fabric friendly name.
- primary_network_ strfriendly_ name 
- The primary network friendly name.
- primary_network_ strid 
- The primary network id for network mapping.
- recovery_fabric_ strarm_ id 
- The recovery fabric ARM id.
- recovery_fabric_ strfriendly_ name 
- The recovery fabric friendly name.
- recovery_network_ strfriendly_ name 
- The recovery network friendly name.
- recovery_network_ strid 
- The recovery network id for network mapping.
- state str
- The pairing state for network mapping.
- fabricSpecific Property Map | Property Map | Property MapSettings 
- The fabric specific settings.
- primaryFabric StringFriendly Name 
- The primary fabric friendly name.
- primaryNetwork StringFriendly Name 
- The primary network friendly name.
- primaryNetwork StringId 
- The primary network id for network mapping.
- recoveryFabric StringArm Id 
- The recovery fabric ARM id.
- recoveryFabric StringFriendly Name 
- The recovery fabric friendly name.
- recoveryNetwork StringFriendly Name 
- The recovery network friendly name.
- recoveryNetwork StringId 
- 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