Internal Network
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,
});
});
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
})
}
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());
}
}
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}
Properties
Administrative state of the InternalNetwork. Example: Enabled | Disabled.
Switch configuration description.
List of resources the BFD for BGP is disabled on. Can be either entire NetworkFabric or NetworkRack.
List of resources the BFD of StaticRoutes is disabled on. Can be either entire NetworkFabric or NetworkRack.
BGP configuration properties
List of resources the BGP is disabled on. Can be either entire NetworkFabric or NetworkRack.
List with object connected IPv4 Subnets.
List with object connected IPv6 Subnets.
List of resources the InternalNetwork is disabled on. Can be either entire NetworkFabric or NetworkRack.
ARM resource ID of importRoutePolicy.
ARM resource ID of importRoutePolicy.
Gets the provisioning state of the resource.
Static Route Configuration properties.
Azure Resource Manager metadata containing createdBy and modifiedBy information.