Express Route Connection Args
data class ExpressRouteConnectionArgs(val authorizationKey: Output<String>? = null, val enableInternetSecurity: Output<Boolean>? = null, val expressRouteCircuitPeeringId: Output<String>? = null, val expressRouteGatewayBypassEnabled: Output<Boolean>? = null, val expressRouteGatewayId: Output<String>? = null, val name: Output<String>? = null, val routing: Output<ExpressRouteConnectionRoutingArgs>? = null, val routingWeight: Output<Int>? = null) : ConvertibleToJava<ExpressRouteConnectionArgs>
Manages an Express Route Connection.
NOTE: The provider status of the Express Route Circuit must be set as provisioned while creating the Express Route Connection. See more details here.
Example Usage
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.VirtualWan;
import com.pulumi.azure.network.VirtualWanArgs;
import com.pulumi.azure.network.VirtualHub;
import com.pulumi.azure.network.VirtualHubArgs;
import com.pulumi.azure.network.ExpressRouteGateway;
import com.pulumi.azure.network.ExpressRouteGatewayArgs;
import com.pulumi.azure.network.ExpressRoutePort;
import com.pulumi.azure.network.ExpressRoutePortArgs;
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.ExpressRouteConnection;
import com.pulumi.azure.network.ExpressRouteConnectionArgs;
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 exampleVirtualWan = new VirtualWan("exampleVirtualWan", VirtualWanArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.build());
var exampleVirtualHub = new VirtualHub("exampleVirtualHub", VirtualHubArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.virtualWanId(exampleVirtualWan.id())
.addressPrefix("10.0.1.0/24")
.build());
var exampleExpressRouteGateway = new ExpressRouteGateway("exampleExpressRouteGateway", ExpressRouteGatewayArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.virtualHubId(exampleVirtualHub.id())
.scaleUnits(1)
.build());
var exampleExpressRoutePort = new ExpressRoutePort("exampleExpressRoutePort", ExpressRoutePortArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.peeringLocation("Equinix-Seattle-SE2")
.bandwidthInGbps(10)
.encapsulation("Dot1Q")
.build());
var exampleExpressRouteCircuit = new ExpressRouteCircuit("exampleExpressRouteCircuit", ExpressRouteCircuitArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.expressRoutePortId(exampleExpressRoutePort.id())
.bandwidthInGbps(5)
.sku(ExpressRouteCircuitSkuArgs.builder()
.tier("Standard")
.family("MeteredData")
.build())
.build());
var exampleExpressRouteCircuitPeering = new ExpressRouteCircuitPeering("exampleExpressRouteCircuitPeering", ExpressRouteCircuitPeeringArgs.builder()
.peeringType("AzurePrivatePeering")
.expressRouteCircuitName(exampleExpressRouteCircuit.name())
.resourceGroupName(exampleResourceGroup.name())
.sharedKey("ItsASecret")
.peerAsn(100)
.primaryPeerAddressPrefix("192.168.1.0/30")
.secondaryPeerAddressPrefix("192.168.2.0/30")
.vlanId(100)
.build());
var exampleExpressRouteConnection = new ExpressRouteConnection("exampleExpressRouteConnection", ExpressRouteConnectionArgs.builder()
.expressRouteGatewayId(exampleExpressRouteGateway.id())
.expressRouteCircuitPeeringId(exampleExpressRouteCircuitPeering.id())
.build());
}
}
Content copied to clipboard
Import
Express Route Connections can be imported using the resource id
, e.g.
$ pulumi import azure:network/expressRouteConnection:ExpressRouteConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/expressRouteGateways/expressRouteGateway1/expressRouteConnections/connection1
Content copied to clipboard
Constructors
Link copied to clipboard
fun ExpressRouteConnectionArgs(authorizationKey: Output<String>? = null, enableInternetSecurity: Output<Boolean>? = null, expressRouteCircuitPeeringId: Output<String>? = null, expressRouteGatewayBypassEnabled: Output<Boolean>? = null, expressRouteGatewayId: Output<String>? = null, name: Output<String>? = null, routing: Output<ExpressRouteConnectionRoutingArgs>? = null, routingWeight: Output<Int>? = null)