ExternalNetwork

class ExternalNetwork : KotlinCustomResource

Defines the ExternalNetwork item. Uses Azure REST API version 2023-02-01-preview. In version 1.x of the Azure Native provider, it used API version 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 = AzureNative.ManagedNetworkFabric.PeeringOption.OptionA,
ResourceGroupName = "resourceGroupName",
});
});
package main
import (
managednetworkfabric "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(managednetworkfabric.PeeringOptionOptionA),
ResourceGroupName: pulumi.String("resourceGroupName"),
})
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.managednetworkfabric.ExternalNetwork;
import com.pulumi.azurenative.managednetworkfabric.ExternalNetworkArgs;
import com.pulumi.azurenative.managednetworkfabric.inputs.ExternalNetworkPropertiesOptionAPropertiesArgs;
import com.pulumi.azurenative.managednetworkfabric.inputs.OptionBPropertiesArgs;
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(ExternalNetworkPropertiesOptionAPropertiesArgs.builder()
.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)
.build())
.optionBProperties(OptionBPropertiesArgs.builder()
.exportRouteTargets("65046:10039")
.importRouteTargets("65046:10039")
.build())
.peeringOption("OptionA")
.resourceGroupName("resourceGroupName")
.build());
}
}

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}

Properties

Link copied to clipboard

AdministrativeState of the externalNetwork. Example: Enabled | Disabled.

Link copied to clipboard
val annotation: Output<String>?

Switch configuration description.

Link copied to clipboard

List of resources the externalNetwork is disabled on. Can be either entire NetworkFabric or NetworkRack.

Link copied to clipboard

ARM resource ID of exportRoutePolicy.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

ARM resource ID of importRoutePolicy.

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Gets the networkToNetworkInterconnectId of the resource.

Link copied to clipboard
Link copied to clipboard

option B properties object

Link copied to clipboard
val peeringOption: Output<String>

Peering option list.

Link copied to clipboard

Gets the provisioning state of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>