ExpressRouteCircuitPeeringArgs

data class ExpressRouteCircuitPeeringArgs(val expressRouteCircuitName: Output<String>? = null, val ipv4Enabled: Output<Boolean>? = null, val ipv6: Output<ExpressRouteCircuitPeeringIpv6Args>? = null, val microsoftPeeringConfig: Output<ExpressRouteCircuitPeeringMicrosoftPeeringConfigArgs>? = null, val peerAsn: Output<Int>? = null, val peeringType: Output<String>? = null, val primaryPeerAddressPrefix: Output<String>? = null, val resourceGroupName: Output<String>? = null, val routeFilterId: Output<String>? = null, val secondaryPeerAddressPrefix: Output<String>? = null, val sharedKey: Output<String>? = null, val vlanId: Output<Int>? = null) : ConvertibleToJava<ExpressRouteCircuitPeeringArgs>

Manages an ExpressRoute Circuit Peering.

Example Usage

Creating A Microsoft Peering)

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.ExpressRouteCircuit;
import com.pulumi.azure.network.ExpressRouteCircuitArgs;
import com.pulumi.azure.network.inputs.ExpressRouteCircuitSkuArgs;
import com.pulumi.azure.network.ExpressRouteCircuitPeering;
import com.pulumi.azure.network.ExpressRouteCircuitPeeringArgs;
import com.pulumi.azure.network.inputs.ExpressRouteCircuitPeeringMicrosoftPeeringConfigArgs;
import com.pulumi.azure.network.inputs.ExpressRouteCircuitPeeringIpv6Args;
import com.pulumi.azure.network.inputs.ExpressRouteCircuitPeeringIpv6MicrosoftPeeringArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleExpressRouteCircuit = new ExpressRouteCircuit("exampleExpressRouteCircuit", ExpressRouteCircuitArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.serviceProviderName("Equinix")
.peeringLocation("Silicon Valley")
.bandwidthInMbps(50)
.sku(ExpressRouteCircuitSkuArgs.builder()
.tier("Standard")
.family("MeteredData")
.build())
.allowClassicOperations(false)
.tags(Map.of("environment", "Production"))
.build());
var exampleExpressRouteCircuitPeering = new ExpressRouteCircuitPeering("exampleExpressRouteCircuitPeering", ExpressRouteCircuitPeeringArgs.builder()
.peeringType("MicrosoftPeering")
.expressRouteCircuitName(exampleExpressRouteCircuit.name())
.resourceGroupName(exampleResourceGroup.name())
.peerAsn(100)
.primaryPeerAddressPrefix("123.0.0.0/30")
.secondaryPeerAddressPrefix("123.0.0.4/30")
.ipv4Enabled(true)
.vlanId(300)
.microsoftPeeringConfig(ExpressRouteCircuitPeeringMicrosoftPeeringConfigArgs.builder()
.advertisedPublicPrefixes("123.1.0.0/24")
.build())
.ipv6(ExpressRouteCircuitPeeringIpv6Args.builder()
.primaryPeerAddressPrefix("2002:db01::/126")
.secondaryPeerAddressPrefix("2003:db01::/126")
.enabled(true)
.microsoftPeering(ExpressRouteCircuitPeeringIpv6MicrosoftPeeringArgs.builder()
.advertisedPublicPrefixes("2002:db01::/126")
.build())
.build())
.build());
}
}

Creating Azure Private Peering)

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.network.ExpressRouteCircuit;
import com.pulumi.azure.network.ExpressRouteCircuitArgs;
import com.pulumi.azure.network.inputs.ExpressRouteCircuitSkuArgs;
import com.pulumi.azure.network.ExpressRouteCircuitPeering;
import com.pulumi.azure.network.ExpressRouteCircuitPeeringArgs;
import com.pulumi.azure.network.inputs.ExpressRouteCircuitPeeringIpv6Args;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleExpressRouteCircuit = new ExpressRouteCircuit("exampleExpressRouteCircuit", ExpressRouteCircuitArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.serviceProviderName("Equinix")
.peeringLocation("Silicon Valley")
.bandwidthInMbps(50)
.sku(ExpressRouteCircuitSkuArgs.builder()
.tier("Standard")
.family("MeteredData")
.build())
.allowClassicOperations(false)
.tags(Map.of("environment", "Production"))
.build());
var exampleExpressRouteCircuitPeering = new ExpressRouteCircuitPeering("exampleExpressRouteCircuitPeering", ExpressRouteCircuitPeeringArgs.builder()
.peeringType("AzurePrivatePeering")
.expressRouteCircuitName(exampleExpressRouteCircuit.name())
.resourceGroupName(exampleResourceGroup.name())
.peerAsn(100)
.primaryPeerAddressPrefix("123.0.0.0/30")
.secondaryPeerAddressPrefix("123.0.0.4/30")
.ipv4Enabled(true)
.vlanId(300)
.ipv6(ExpressRouteCircuitPeeringIpv6Args.builder()
.primaryPeerAddressPrefix("2002:db01::/126")
.secondaryPeerAddressPrefix("2003:db01::/126")
.enabled(true)
.build())
.build());
}
}

Import

ExpressRoute Circuit Peerings can be imported using the resource id, e.g.

$ pulumi import azure:network/expressRouteCircuitPeering:ExpressRouteCircuitPeering peering1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/expressRouteCircuits/myExpressRoute/peerings/peering1

Constructors

Link copied to clipboard
fun ExpressRouteCircuitPeeringArgs(expressRouteCircuitName: Output<String>? = null, ipv4Enabled: Output<Boolean>? = null, ipv6: Output<ExpressRouteCircuitPeeringIpv6Args>? = null, microsoftPeeringConfig: Output<ExpressRouteCircuitPeeringMicrosoftPeeringConfigArgs>? = null, peerAsn: Output<Int>? = null, peeringType: Output<String>? = null, primaryPeerAddressPrefix: Output<String>? = null, resourceGroupName: Output<String>? = null, routeFilterId: Output<String>? = null, secondaryPeerAddressPrefix: Output<String>? = null, sharedKey: Output<String>? = null, vlanId: Output<Int>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ExpressRouteCircuitPeeringArgs

Properties

Link copied to clipboard
val expressRouteCircuitName: Output<String>? = null

The name of the ExpressRoute Circuit in which to create the Peering. Changing this forces a new resource to be created.

Link copied to clipboard
val ipv4Enabled: Output<Boolean>? = null

A boolean value indicating whether the IPv4 peering is enabled. Defaults to true.

Link copied to clipboard

A ipv6 block as defined below.

Link copied to clipboard

A microsoft_peering_config block as defined below. Required when peering_type is set to MicrosoftPeering and config for IPv4.

Link copied to clipboard
val peerAsn: Output<Int>? = null

The Either a 16-bit or a 32-bit ASN. Can either be public or private.

Link copied to clipboard
val peeringType: Output<String>? = null

The type of the ExpressRoute Circuit Peering. Acceptable values include AzurePrivatePeering, AzurePublicPeering and MicrosoftPeering.

Link copied to clipboard
val primaryPeerAddressPrefix: Output<String>? = null

A subnet for the primary link.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group in which to create the Express Route Circuit Peering. Changing this forces a new resource to be created.

Link copied to clipboard
val routeFilterId: Output<String>? = null

The ID of the Route Filter. Only available when peering_type is set to MicrosoftPeering.

Link copied to clipboard
val secondaryPeerAddressPrefix: Output<String>? = null

A subnet for the secondary link.

Link copied to clipboard
val sharedKey: Output<String>? = null

The shared key. Can be a maximum of 25 characters.

Link copied to clipboard
val vlanId: Output<Int>? = null

A valid VLAN ID to establish this peering on.