Internal Network Args
data class InternalNetworkArgs(val annotation: Output<String>? = null, val bgpConfiguration: Output<BgpConfigurationArgs>? = null, val connectedIPv4Subnets: Output<List<ConnectedSubnetArgs>>? = null, val connectedIPv6Subnets: Output<List<ConnectedSubnetArgs>>? = null, val exportRoutePolicyId: Output<String>? = null, val importRoutePolicyId: Output<String>? = null, val internalNetworkName: Output<String>? = null, val l3IsolationDomainName: Output<String>? = null, val mtu: Output<Int>? = null, val resourceGroupName: Output<String>? = null, val staticRouteConfiguration: Output<StaticRouteConfigurationArgs>? = null, val vlanId: Output<Int>? = null) : ConvertibleToJava<InternalNetworkArgs>
Defines the InternalNetwork 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
InternalNetworks_Create_MaximumSet_Gen
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var internalNetwork = new AzureNative.ManagedNetworkFabric.InternalNetwork("internalNetwork", new()
{
BgpConfiguration = new AzureNative.ManagedNetworkFabric.Inputs.BgpConfigurationArgs
{
AllowAS = 1,
AllowASOverride = AzureNative.ManagedNetworkFabric.AllowASOverride.Enable,
DefaultRouteOriginate = AzureNative.ManagedNetworkFabric.BooleanEnumProperty.True,
Ipv4ListenRangePrefixes = new[]
{
"10.1.0.0/25",
},
Ipv4NeighborAddress = new[]
{
new AzureNative.ManagedNetworkFabric.Inputs.NeighborAddressArgs
{
Address = "10.1.0.0",
},
},
Ipv6ListenRangePrefixes = new[]
{
"2fff::/66",
},
Ipv6NeighborAddress = new[]
{
new AzureNative.ManagedNetworkFabric.Inputs.NeighborAddressArgs
{
Address = "2fff::",
},
},
PeerASN = 6,
},
ConnectedIPv4Subnets = new[]
{
new AzureNative.ManagedNetworkFabric.Inputs.ConnectedSubnetArgs
{
Prefix = "10.0.0.0/24",
},
},
ConnectedIPv6Subnets = new[]
{
new AzureNative.ManagedNetworkFabric.Inputs.ConnectedSubnetArgs
{
Prefix = "3FFE:FFFF:0:CD30::a0/29",
},
},
ExportRoutePolicyId = "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2",
ImportRoutePolicyId = "/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1",
InternalNetworkName = "example-internalnetwork",
L3IsolationDomainName = "example-l3domain",
Mtu = 1500,
ResourceGroupName = "resourceGroupName",
StaticRouteConfiguration = new AzureNative.ManagedNetworkFabric.Inputs.StaticRouteConfigurationArgs
{
Ipv4Routes = new[]
{
new AzureNative.ManagedNetworkFabric.Inputs.StaticRoutePropertiesArgs
{
NextHop = new[]
{
"10.0.0.1",
},
Prefix = "10.1.0.0/24",
},
},
Ipv6Routes = new[]
{
new AzureNative.ManagedNetworkFabric.Inputs.StaticRoutePropertiesArgs
{
NextHop = new[]
{
"2ffe::1",
},
Prefix = "2fff::/64",
},
},
},
VlanId = 501,
});
});
Content copied to clipboard
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.NewInternalNetwork(ctx, "internalNetwork", &managednetworkfabric.InternalNetworkArgs{
BgpConfiguration: &managednetworkfabric.BgpConfigurationArgs{
AllowAS: pulumi.Int(1),
AllowASOverride: pulumi.String(managednetworkfabric.AllowASOverrideEnable),
DefaultRouteOriginate: pulumi.String(managednetworkfabric.BooleanEnumPropertyTrue),
Ipv4ListenRangePrefixes: pulumi.StringArray{
pulumi.String("10.1.0.0/25"),
},
Ipv4NeighborAddress: managednetworkfabric.NeighborAddressArray{
&managednetworkfabric.NeighborAddressArgs{
Address: pulumi.String("10.1.0.0"),
},
},
Ipv6ListenRangePrefixes: pulumi.StringArray{
pulumi.String("2fff::/66"),
},
Ipv6NeighborAddress: managednetworkfabric.NeighborAddressArray{
&managednetworkfabric.NeighborAddressArgs{
Address: pulumi.String("2fff::"),
},
},
PeerASN: pulumi.Int(6),
},
ConnectedIPv4Subnets: managednetworkfabric.ConnectedSubnetArray{
&managednetworkfabric.ConnectedSubnetArgs{
Prefix: pulumi.String("10.0.0.0/24"),
},
},
ConnectedIPv6Subnets: managednetworkfabric.ConnectedSubnetArray{
&managednetworkfabric.ConnectedSubnetArgs{
Prefix: pulumi.String("3FFE:FFFF:0:CD30::a0/29"),
},
},
ExportRoutePolicyId: pulumi.String("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2"),
ImportRoutePolicyId: pulumi.String("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1"),
InternalNetworkName: pulumi.String("example-internalnetwork"),
L3IsolationDomainName: pulumi.String("example-l3domain"),
Mtu: pulumi.Int(1500),
ResourceGroupName: pulumi.String("resourceGroupName"),
StaticRouteConfiguration: &managednetworkfabric.StaticRouteConfigurationArgs{
Ipv4Routes: managednetworkfabric.StaticRoutePropertiesArray{
&managednetworkfabric.StaticRoutePropertiesArgs{
NextHop: pulumi.StringArray{
pulumi.String("10.0.0.1"),
},
Prefix: pulumi.String("10.1.0.0/24"),
},
},
Ipv6Routes: managednetworkfabric.StaticRoutePropertiesArray{
&managednetworkfabric.StaticRoutePropertiesArgs{
NextHop: pulumi.StringArray{
pulumi.String("2ffe::1"),
},
Prefix: pulumi.String("2fff::/64"),
},
},
},
VlanId: pulumi.Int(501),
})
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.InternalNetwork;
import com.pulumi.azurenative.managednetworkfabric.InternalNetworkArgs;
import com.pulumi.azurenative.managednetworkfabric.inputs.BgpConfigurationArgs;
import com.pulumi.azurenative.managednetworkfabric.inputs.ConnectedSubnetArgs;
import com.pulumi.azurenative.managednetworkfabric.inputs.StaticRouteConfigurationArgs;
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 internalNetwork = new InternalNetwork("internalNetwork", InternalNetworkArgs.builder()
.bgpConfiguration(BgpConfigurationArgs.builder()
.allowAS(1)
.allowASOverride("Enable")
.defaultRouteOriginate("True")
.ipv4ListenRangePrefixes("10.1.0.0/25")
.ipv4NeighborAddress(NeighborAddressArgs.builder()
.address("10.1.0.0")
.build())
.ipv6ListenRangePrefixes("2fff::/66")
.ipv6NeighborAddress(NeighborAddressArgs.builder()
.address("2fff::")
.build())
.peerASN(6)
.build())
.connectedIPv4Subnets(ConnectedSubnetArgs.builder()
.prefix("10.0.0.0/24")
.build())
.connectedIPv6Subnets(ConnectedSubnetArgs.builder()
.prefix("3FFE:FFFF:0:CD30::a0/29")
.build())
.exportRoutePolicyId("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName2")
.importRoutePolicyId("/subscriptions/subscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/routePolicies/routePolicyName1")
.internalNetworkName("example-internalnetwork")
.l3IsolationDomainName("example-l3domain")
.mtu(1500)
.resourceGroupName("resourceGroupName")
.staticRouteConfiguration(StaticRouteConfigurationArgs.builder()
.ipv4Routes(StaticRoutePropertiesArgs.builder()
.nextHop("10.0.0.1")
.prefix("10.1.0.0/24")
.build())
.ipv6Routes(StaticRoutePropertiesArgs.builder()
.nextHop("2ffe::1")
.prefix("2fff::/64")
.build())
.build())
.vlanId(501)
.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:InternalNetwork example-externalnetwork /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedNetworkFabric/l3IsolationDomains/{l3IsolationDomainName}/internalNetworks/{internalNetworkName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(annotation: Output<String>? = null, bgpConfiguration: Output<BgpConfigurationArgs>? = null, connectedIPv4Subnets: Output<List<ConnectedSubnetArgs>>? = null, connectedIPv6Subnets: Output<List<ConnectedSubnetArgs>>? = null, exportRoutePolicyId: Output<String>? = null, importRoutePolicyId: Output<String>? = null, internalNetworkName: Output<String>? = null, l3IsolationDomainName: Output<String>? = null, mtu: Output<Int>? = null, resourceGroupName: Output<String>? = null, staticRouteConfiguration: Output<StaticRouteConfigurationArgs>? = null, vlanId: Output<Int>? = null)
Properties
Link copied to clipboard
Switch configuration description.
Link copied to clipboard
BGP configuration properties
Link copied to clipboard
List with object connected IPv4 Subnets.
Link copied to clipboard
List with object connected IPv6 Subnets.
Link copied to clipboard
ARM resource ID of importRoutePolicy.
Link copied to clipboard
ARM resource ID of importRoutePolicy.
Link copied to clipboard
Name of the InternalNetwork
Link copied to clipboard
Name of the L3IsolationDomain
Link copied to clipboard
The name of the resource group. The name is case insensitive.
Link copied to clipboard
Static Route Configuration properties.