External Network
    Defines the ExternalNetwork item. Azure REST API version: 2023-02-01-preview. Prior API version in Azure Native 1.x: 2023-02-01-preview. Other available API versions: 2023-06-15.
Example Usage
ExternalNetworks_Create_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var externalNetwork = new AzureNative.ManagedNetworkFabric.ExternalNetwork("externalNetwork", new()
    {
        ExportRoutePolicyId = "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName",
        ExternalNetworkName = "example-externalnetwork",
        ImportRoutePolicyId = "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName",
        L3IsolationDomainName = "example-l3domain",
        OptionAProperties = new AzureNative.ManagedNetworkFabric.Inputs.ExternalNetworkPropertiesOptionAPropertiesArgs
        {
            Mtu = 1500,
            PeerASN = 65047,
            PrimaryIpv4Prefix = "10.1.1.0/30",
            PrimaryIpv6Prefix = "3FFE:FFFF:0:CD30::a0/126",
            SecondaryIpv4Prefix = "10.1.1.4/30",
            SecondaryIpv6Prefix = "3FFE:FFFF:0:CD30::a4/126",
            VlanId = 1001,
        },
        OptionBProperties = new AzureNative.ManagedNetworkFabric.Inputs.OptionBPropertiesArgs
        {
            ExportRouteTargets = new[]
            {
                "65046:10039",
            },
            ImportRouteTargets = new[]
            {
                "65046:10039",
            },
        },
        PeeringOption = "OptionA",
        ResourceGroupName = "resourceGroupName",
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/managednetworkfabric/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := managednetworkfabric.NewExternalNetwork(ctx, "externalNetwork", &managednetworkfabric.ExternalNetworkArgs{
			ExportRoutePolicyId:   pulumi.String("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName"),
			ExternalNetworkName:   pulumi.String("example-externalnetwork"),
			ImportRoutePolicyId:   pulumi.String("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName"),
			L3IsolationDomainName: pulumi.String("example-l3domain"),
			OptionAProperties: &managednetworkfabric.ExternalNetworkPropertiesOptionAPropertiesArgs{
				Mtu:                 pulumi.Int(1500),
				PeerASN:             pulumi.Int(65047),
				PrimaryIpv4Prefix:   pulumi.String("10.1.1.0/30"),
				PrimaryIpv6Prefix:   pulumi.String("3FFE:FFFF:0:CD30::a0/126"),
				SecondaryIpv4Prefix: pulumi.String("10.1.1.4/30"),
				SecondaryIpv6Prefix: pulumi.String("3FFE:FFFF:0:CD30::a4/126"),
				VlanId:              pulumi.Int(1001),
			},
			OptionBProperties: &managednetworkfabric.OptionBPropertiesArgs{
				ExportRouteTargets: pulumi.StringArray{
					pulumi.String("65046:10039"),
				},
				ImportRouteTargets: pulumi.StringArray{
					pulumi.String("65046:10039"),
				},
			},
			PeeringOption:     pulumi.String("OptionA"),
			ResourceGroupName: pulumi.String("resourceGroupName"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.managednetworkfabric.ExternalNetwork;
import com.pulumi.azurenative.managednetworkfabric.ExternalNetworkArgs;
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 externalNetwork = new ExternalNetwork("externalNetwork", ExternalNetworkArgs.builder()
            .exportRoutePolicyId("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName")
            .externalNetworkName("example-externalnetwork")
            .importRoutePolicyId("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName")
            .l3IsolationDomainName("example-l3domain")
            .optionAProperties(Map.ofEntries(
                Map.entry("mtu", 1500),
                Map.entry("peerASN", 65047),
                Map.entry("primaryIpv4Prefix", "10.1.1.0/30"),
                Map.entry("primaryIpv6Prefix", "3FFE:FFFF:0:CD30::a0/126"),
                Map.entry("secondaryIpv4Prefix", "10.1.1.4/30"),
                Map.entry("secondaryIpv6Prefix", "3FFE:FFFF:0:CD30::a4/126"),
                Map.entry("vlanId", 1001)
            ))
            .optionBProperties(Map.ofEntries(
                Map.entry("exportRouteTargets", "65046:10039"),
                Map.entry("importRouteTargets", "65046:10039")
            ))
            .peeringOption("OptionA")
            .resourceGroupName("resourceGroupName")
            .build());
    }
}Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:managednetworkfabric:ExternalNetwork example-externalnetwork /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/externalNetworks/{externalNetworkName}Content copied to clipboard
Properties
Link copied to clipboard
                Link copied to clipboard
                Link copied to clipboard
                Link copied to clipboard
                Link copied to clipboard
                Link copied to clipboard