1. Packages
  2. Azure Classic
  3. API Docs
  4. network
  5. ExpressRouteConnection

We recommend using Azure Native.

Azure Classic v5.49.0 published on Tuesday, Aug 29, 2023 by Pulumi

azure.network.ExpressRouteConnection

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.49.0 published on Tuesday, Aug 29, 2023 by Pulumi

    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

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new()
        {
            Location = "West Europe",
        });
    
        var exampleVirtualWan = new Azure.Network.VirtualWan("exampleVirtualWan", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
        });
    
        var exampleVirtualHub = new Azure.Network.VirtualHub("exampleVirtualHub", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            VirtualWanId = exampleVirtualWan.Id,
            AddressPrefix = "10.0.1.0/24",
        });
    
        var exampleExpressRouteGateway = new Azure.Network.ExpressRouteGateway("exampleExpressRouteGateway", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            VirtualHubId = exampleVirtualHub.Id,
            ScaleUnits = 1,
        });
    
        var exampleExpressRoutePort = new Azure.Network.ExpressRoutePort("exampleExpressRoutePort", new()
        {
            ResourceGroupName = exampleResourceGroup.Name,
            Location = exampleResourceGroup.Location,
            PeeringLocation = "Equinix-Seattle-SE2",
            BandwidthInGbps = 10,
            Encapsulation = "Dot1Q",
        });
    
        var exampleExpressRouteCircuit = new Azure.Network.ExpressRouteCircuit("exampleExpressRouteCircuit", new()
        {
            Location = exampleResourceGroup.Location,
            ResourceGroupName = exampleResourceGroup.Name,
            ExpressRoutePortId = exampleExpressRoutePort.Id,
            BandwidthInGbps = 5,
            Sku = new Azure.Network.Inputs.ExpressRouteCircuitSkuArgs
            {
                Tier = "Standard",
                Family = "MeteredData",
            },
        });
    
        var exampleExpressRouteCircuitPeering = new Azure.Network.ExpressRouteCircuitPeering("exampleExpressRouteCircuitPeering", new()
        {
            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,
        });
    
        var exampleExpressRouteConnection = new Azure.Network.ExpressRouteConnection("exampleExpressRouteConnection", new()
        {
            ExpressRouteGatewayId = exampleExpressRouteGateway.Id,
            ExpressRouteCircuitPeeringId = exampleExpressRouteCircuitPeering.Id,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualWan, err := network.NewVirtualWan(ctx, "exampleVirtualWan", &network.VirtualWanArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    		})
    		if err != nil {
    			return err
    		}
    		exampleVirtualHub, err := network.NewVirtualHub(ctx, "exampleVirtualHub", &network.VirtualHubArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    			VirtualWanId:      exampleVirtualWan.ID(),
    			AddressPrefix:     pulumi.String("10.0.1.0/24"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleExpressRouteGateway, err := network.NewExpressRouteGateway(ctx, "exampleExpressRouteGateway", &network.ExpressRouteGatewayArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    			VirtualHubId:      exampleVirtualHub.ID(),
    			ScaleUnits:        pulumi.Int(1),
    		})
    		if err != nil {
    			return err
    		}
    		exampleExpressRoutePort, err := network.NewExpressRoutePort(ctx, "exampleExpressRoutePort", &network.ExpressRoutePortArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    			PeeringLocation:   pulumi.String("Equinix-Seattle-SE2"),
    			BandwidthInGbps:   pulumi.Int(10),
    			Encapsulation:     pulumi.String("Dot1Q"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleExpressRouteCircuit, err := network.NewExpressRouteCircuit(ctx, "exampleExpressRouteCircuit", &network.ExpressRouteCircuitArgs{
    			Location:           exampleResourceGroup.Location,
    			ResourceGroupName:  exampleResourceGroup.Name,
    			ExpressRoutePortId: exampleExpressRoutePort.ID(),
    			BandwidthInGbps:    pulumi.Float64(5),
    			Sku: &network.ExpressRouteCircuitSkuArgs{
    				Tier:   pulumi.String("Standard"),
    				Family: pulumi.String("MeteredData"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleExpressRouteCircuitPeering, err := network.NewExpressRouteCircuitPeering(ctx, "exampleExpressRouteCircuitPeering", &network.ExpressRouteCircuitPeeringArgs{
    			PeeringType:                pulumi.String("AzurePrivatePeering"),
    			ExpressRouteCircuitName:    exampleExpressRouteCircuit.Name,
    			ResourceGroupName:          exampleResourceGroup.Name,
    			SharedKey:                  pulumi.String("ItsASecret"),
    			PeerAsn:                    pulumi.Int(100),
    			PrimaryPeerAddressPrefix:   pulumi.String("192.168.1.0/30"),
    			SecondaryPeerAddressPrefix: pulumi.String("192.168.2.0/30"),
    			VlanId:                     pulumi.Int(100),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = network.NewExpressRouteConnection(ctx, "exampleExpressRouteConnection", &network.ExpressRouteConnectionArgs{
    			ExpressRouteGatewayId:        exampleExpressRouteGateway.ID(),
    			ExpressRouteCircuitPeeringId: exampleExpressRouteCircuitPeering.ID(),
    		})
    		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.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());
    
        }
    }
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_virtual_wan = azure.network.VirtualWan("exampleVirtualWan",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location)
    example_virtual_hub = azure.network.VirtualHub("exampleVirtualHub",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        virtual_wan_id=example_virtual_wan.id,
        address_prefix="10.0.1.0/24")
    example_express_route_gateway = azure.network.ExpressRouteGateway("exampleExpressRouteGateway",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        virtual_hub_id=example_virtual_hub.id,
        scale_units=1)
    example_express_route_port = azure.network.ExpressRoutePort("exampleExpressRoutePort",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        peering_location="Equinix-Seattle-SE2",
        bandwidth_in_gbps=10,
        encapsulation="Dot1Q")
    example_express_route_circuit = azure.network.ExpressRouteCircuit("exampleExpressRouteCircuit",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        express_route_port_id=example_express_route_port.id,
        bandwidth_in_gbps=5,
        sku=azure.network.ExpressRouteCircuitSkuArgs(
            tier="Standard",
            family="MeteredData",
        ))
    example_express_route_circuit_peering = azure.network.ExpressRouteCircuitPeering("exampleExpressRouteCircuitPeering",
        peering_type="AzurePrivatePeering",
        express_route_circuit_name=example_express_route_circuit.name,
        resource_group_name=example_resource_group.name,
        shared_key="ItsASecret",
        peer_asn=100,
        primary_peer_address_prefix="192.168.1.0/30",
        secondary_peer_address_prefix="192.168.2.0/30",
        vlan_id=100)
    example_express_route_connection = azure.network.ExpressRouteConnection("exampleExpressRouteConnection",
        express_route_gateway_id=example_express_route_gateway.id,
        express_route_circuit_peering_id=example_express_route_circuit_peering.id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleVirtualWan = new azure.network.VirtualWan("exampleVirtualWan", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
    });
    const exampleVirtualHub = new azure.network.VirtualHub("exampleVirtualHub", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        virtualWanId: exampleVirtualWan.id,
        addressPrefix: "10.0.1.0/24",
    });
    const exampleExpressRouteGateway = new azure.network.ExpressRouteGateway("exampleExpressRouteGateway", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        virtualHubId: exampleVirtualHub.id,
        scaleUnits: 1,
    });
    const exampleExpressRoutePort = new azure.network.ExpressRoutePort("exampleExpressRoutePort", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        peeringLocation: "Equinix-Seattle-SE2",
        bandwidthInGbps: 10,
        encapsulation: "Dot1Q",
    });
    const exampleExpressRouteCircuit = new azure.network.ExpressRouteCircuit("exampleExpressRouteCircuit", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        expressRoutePortId: exampleExpressRoutePort.id,
        bandwidthInGbps: 5,
        sku: {
            tier: "Standard",
            family: "MeteredData",
        },
    });
    const exampleExpressRouteCircuitPeering = new azure.network.ExpressRouteCircuitPeering("exampleExpressRouteCircuitPeering", {
        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,
    });
    const exampleExpressRouteConnection = new azure.network.ExpressRouteConnection("exampleExpressRouteConnection", {
        expressRouteGatewayId: exampleExpressRouteGateway.id,
        expressRouteCircuitPeeringId: exampleExpressRouteCircuitPeering.id,
    });
    
    resources:
      exampleResourceGroup:
        type: azure:core:ResourceGroup
        properties:
          location: West Europe
      exampleVirtualWan:
        type: azure:network:VirtualWan
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
      exampleVirtualHub:
        type: azure:network:VirtualHub
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          virtualWanId: ${exampleVirtualWan.id}
          addressPrefix: 10.0.1.0/24
      exampleExpressRouteGateway:
        type: azure:network:ExpressRouteGateway
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          virtualHubId: ${exampleVirtualHub.id}
          scaleUnits: 1
      exampleExpressRoutePort:
        type: azure:network:ExpressRoutePort
        properties:
          resourceGroupName: ${exampleResourceGroup.name}
          location: ${exampleResourceGroup.location}
          peeringLocation: Equinix-Seattle-SE2
          bandwidthInGbps: 10
          encapsulation: Dot1Q
      exampleExpressRouteCircuit:
        type: azure:network:ExpressRouteCircuit
        properties:
          location: ${exampleResourceGroup.location}
          resourceGroupName: ${exampleResourceGroup.name}
          expressRoutePortId: ${exampleExpressRoutePort.id}
          bandwidthInGbps: 5
          sku:
            tier: Standard
            family: MeteredData
      exampleExpressRouteCircuitPeering:
        type: azure:network:ExpressRouteCircuitPeering
        properties:
          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
      exampleExpressRouteConnection:
        type: azure:network:ExpressRouteConnection
        properties:
          expressRouteGatewayId: ${exampleExpressRouteGateway.id}
          expressRouteCircuitPeeringId: ${exampleExpressRouteCircuitPeering.id}
    

    Create ExpressRouteConnection Resource

    new ExpressRouteConnection(name: string, args: ExpressRouteConnectionArgs, opts?: CustomResourceOptions);
    @overload
    def ExpressRouteConnection(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               authorization_key: Optional[str] = None,
                               enable_internet_security: Optional[bool] = None,
                               express_route_circuit_peering_id: Optional[str] = None,
                               express_route_gateway_bypass_enabled: Optional[bool] = None,
                               express_route_gateway_id: Optional[str] = None,
                               name: Optional[str] = None,
                               routing: Optional[ExpressRouteConnectionRoutingArgs] = None,
                               routing_weight: Optional[int] = None)
    @overload
    def ExpressRouteConnection(resource_name: str,
                               args: ExpressRouteConnectionArgs,
                               opts: Optional[ResourceOptions] = None)
    func NewExpressRouteConnection(ctx *Context, name string, args ExpressRouteConnectionArgs, opts ...ResourceOption) (*ExpressRouteConnection, error)
    public ExpressRouteConnection(string name, ExpressRouteConnectionArgs args, CustomResourceOptions? opts = null)
    public ExpressRouteConnection(String name, ExpressRouteConnectionArgs args)
    public ExpressRouteConnection(String name, ExpressRouteConnectionArgs args, CustomResourceOptions options)
    
    type: azure:network:ExpressRouteConnection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ExpressRouteConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ExpressRouteConnectionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ExpressRouteConnectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ExpressRouteConnectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ExpressRouteConnectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ExpressRouteConnection Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ExpressRouteConnection resource accepts the following input properties:

    ExpressRouteCircuitPeeringId string

    The ID of the Express Route Circuit Peering that this Express Route Connection connects with. Changing this forces a new resource to be created.

    ExpressRouteGatewayId string

    The ID of the Express Route Gateway that this Express Route Connection connects with. Changing this forces a new resource to be created.

    AuthorizationKey string

    The authorization key to establish the Express Route Connection.

    EnableInternetSecurity bool

    Is Internet security enabled for this Express Route Connection?

    ExpressRouteGatewayBypassEnabled bool

    Specified whether Fast Path is enabled for Virtual Wan Firewall Hub. Defaults to false.

    Name string

    The name which should be used for this Express Route Connection. Changing this forces a new resource to be created.

    Routing ExpressRouteConnectionRouting

    A routing block as defined below.

    RoutingWeight int

    The routing weight associated to the Express Route Connection. Possible value is between 0 and 32000. Defaults to 0.

    ExpressRouteCircuitPeeringId string

    The ID of the Express Route Circuit Peering that this Express Route Connection connects with. Changing this forces a new resource to be created.

    ExpressRouteGatewayId string

    The ID of the Express Route Gateway that this Express Route Connection connects with. Changing this forces a new resource to be created.

    AuthorizationKey string

    The authorization key to establish the Express Route Connection.

    EnableInternetSecurity bool

    Is Internet security enabled for this Express Route Connection?

    ExpressRouteGatewayBypassEnabled bool

    Specified whether Fast Path is enabled for Virtual Wan Firewall Hub. Defaults to false.

    Name string

    The name which should be used for this Express Route Connection. Changing this forces a new resource to be created.

    Routing ExpressRouteConnectionRoutingArgs

    A routing block as defined below.

    RoutingWeight int

    The routing weight associated to the Express Route Connection. Possible value is between 0 and 32000. Defaults to 0.

    expressRouteCircuitPeeringId String

    The ID of the Express Route Circuit Peering that this Express Route Connection connects with. Changing this forces a new resource to be created.

    expressRouteGatewayId String

    The ID of the Express Route Gateway that this Express Route Connection connects with. Changing this forces a new resource to be created.

    authorizationKey String

    The authorization key to establish the Express Route Connection.

    enableInternetSecurity Boolean

    Is Internet security enabled for this Express Route Connection?

    expressRouteGatewayBypassEnabled Boolean

    Specified whether Fast Path is enabled for Virtual Wan Firewall Hub. Defaults to false.

    name String

    The name which should be used for this Express Route Connection. Changing this forces a new resource to be created.

    routing ExpressRouteConnectionRouting

    A routing block as defined below.

    routingWeight Integer

    The routing weight associated to the Express Route Connection. Possible value is between 0 and 32000. Defaults to 0.

    expressRouteCircuitPeeringId string

    The ID of the Express Route Circuit Peering that this Express Route Connection connects with. Changing this forces a new resource to be created.

    expressRouteGatewayId string

    The ID of the Express Route Gateway that this Express Route Connection connects with. Changing this forces a new resource to be created.

    authorizationKey string

    The authorization key to establish the Express Route Connection.

    enableInternetSecurity boolean

    Is Internet security enabled for this Express Route Connection?

    expressRouteGatewayBypassEnabled boolean

    Specified whether Fast Path is enabled for Virtual Wan Firewall Hub. Defaults to false.

    name string

    The name which should be used for this Express Route Connection. Changing this forces a new resource to be created.

    routing ExpressRouteConnectionRouting

    A routing block as defined below.

    routingWeight number

    The routing weight associated to the Express Route Connection. Possible value is between 0 and 32000. Defaults to 0.

    express_route_circuit_peering_id str

    The ID of the Express Route Circuit Peering that this Express Route Connection connects with. Changing this forces a new resource to be created.

    express_route_gateway_id str

    The ID of the Express Route Gateway that this Express Route Connection connects with. Changing this forces a new resource to be created.

    authorization_key str

    The authorization key to establish the Express Route Connection.

    enable_internet_security bool

    Is Internet security enabled for this Express Route Connection?

    express_route_gateway_bypass_enabled bool

    Specified whether Fast Path is enabled for Virtual Wan Firewall Hub. Defaults to false.

    name str

    The name which should be used for this Express Route Connection. Changing this forces a new resource to be created.

    routing ExpressRouteConnectionRoutingArgs

    A routing block as defined below.

    routing_weight int

    The routing weight associated to the Express Route Connection. Possible value is between 0 and 32000. Defaults to 0.

    expressRouteCircuitPeeringId String

    The ID of the Express Route Circuit Peering that this Express Route Connection connects with. Changing this forces a new resource to be created.

    expressRouteGatewayId String

    The ID of the Express Route Gateway that this Express Route Connection connects with. Changing this forces a new resource to be created.

    authorizationKey String

    The authorization key to establish the Express Route Connection.

    enableInternetSecurity Boolean

    Is Internet security enabled for this Express Route Connection?

    expressRouteGatewayBypassEnabled Boolean

    Specified whether Fast Path is enabled for Virtual Wan Firewall Hub. Defaults to false.

    name String

    The name which should be used for this Express Route Connection. Changing this forces a new resource to be created.

    routing Property Map

    A routing block as defined below.

    routingWeight Number

    The routing weight associated to the Express Route Connection. Possible value is between 0 and 32000. Defaults to 0.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ExpressRouteConnection resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    Id string

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    id string

    The provider-assigned unique ID for this managed resource.

    id str

    The provider-assigned unique ID for this managed resource.

    id String

    The provider-assigned unique ID for this managed resource.

    Look up Existing ExpressRouteConnection Resource

    Get an existing ExpressRouteConnection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ExpressRouteConnectionState, opts?: CustomResourceOptions): ExpressRouteConnection
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            authorization_key: Optional[str] = None,
            enable_internet_security: Optional[bool] = None,
            express_route_circuit_peering_id: Optional[str] = None,
            express_route_gateway_bypass_enabled: Optional[bool] = None,
            express_route_gateway_id: Optional[str] = None,
            name: Optional[str] = None,
            routing: Optional[ExpressRouteConnectionRoutingArgs] = None,
            routing_weight: Optional[int] = None) -> ExpressRouteConnection
    func GetExpressRouteConnection(ctx *Context, name string, id IDInput, state *ExpressRouteConnectionState, opts ...ResourceOption) (*ExpressRouteConnection, error)
    public static ExpressRouteConnection Get(string name, Input<string> id, ExpressRouteConnectionState? state, CustomResourceOptions? opts = null)
    public static ExpressRouteConnection get(String name, Output<String> id, ExpressRouteConnectionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AuthorizationKey string

    The authorization key to establish the Express Route Connection.

    EnableInternetSecurity bool

    Is Internet security enabled for this Express Route Connection?

    ExpressRouteCircuitPeeringId string

    The ID of the Express Route Circuit Peering that this Express Route Connection connects with. Changing this forces a new resource to be created.

    ExpressRouteGatewayBypassEnabled bool

    Specified whether Fast Path is enabled for Virtual Wan Firewall Hub. Defaults to false.

    ExpressRouteGatewayId string

    The ID of the Express Route Gateway that this Express Route Connection connects with. Changing this forces a new resource to be created.

    Name string

    The name which should be used for this Express Route Connection. Changing this forces a new resource to be created.

    Routing ExpressRouteConnectionRouting

    A routing block as defined below.

    RoutingWeight int

    The routing weight associated to the Express Route Connection. Possible value is between 0 and 32000. Defaults to 0.

    AuthorizationKey string

    The authorization key to establish the Express Route Connection.

    EnableInternetSecurity bool

    Is Internet security enabled for this Express Route Connection?

    ExpressRouteCircuitPeeringId string

    The ID of the Express Route Circuit Peering that this Express Route Connection connects with. Changing this forces a new resource to be created.

    ExpressRouteGatewayBypassEnabled bool

    Specified whether Fast Path is enabled for Virtual Wan Firewall Hub. Defaults to false.

    ExpressRouteGatewayId string

    The ID of the Express Route Gateway that this Express Route Connection connects with. Changing this forces a new resource to be created.

    Name string

    The name which should be used for this Express Route Connection. Changing this forces a new resource to be created.

    Routing ExpressRouteConnectionRoutingArgs

    A routing block as defined below.

    RoutingWeight int

    The routing weight associated to the Express Route Connection. Possible value is between 0 and 32000. Defaults to 0.

    authorizationKey String

    The authorization key to establish the Express Route Connection.

    enableInternetSecurity Boolean

    Is Internet security enabled for this Express Route Connection?

    expressRouteCircuitPeeringId String

    The ID of the Express Route Circuit Peering that this Express Route Connection connects with. Changing this forces a new resource to be created.

    expressRouteGatewayBypassEnabled Boolean

    Specified whether Fast Path is enabled for Virtual Wan Firewall Hub. Defaults to false.

    expressRouteGatewayId String

    The ID of the Express Route Gateway that this Express Route Connection connects with. Changing this forces a new resource to be created.

    name String

    The name which should be used for this Express Route Connection. Changing this forces a new resource to be created.

    routing ExpressRouteConnectionRouting

    A routing block as defined below.

    routingWeight Integer

    The routing weight associated to the Express Route Connection. Possible value is between 0 and 32000. Defaults to 0.

    authorizationKey string

    The authorization key to establish the Express Route Connection.

    enableInternetSecurity boolean

    Is Internet security enabled for this Express Route Connection?

    expressRouteCircuitPeeringId string

    The ID of the Express Route Circuit Peering that this Express Route Connection connects with. Changing this forces a new resource to be created.

    expressRouteGatewayBypassEnabled boolean

    Specified whether Fast Path is enabled for Virtual Wan Firewall Hub. Defaults to false.

    expressRouteGatewayId string

    The ID of the Express Route Gateway that this Express Route Connection connects with. Changing this forces a new resource to be created.

    name string

    The name which should be used for this Express Route Connection. Changing this forces a new resource to be created.

    routing ExpressRouteConnectionRouting

    A routing block as defined below.

    routingWeight number

    The routing weight associated to the Express Route Connection. Possible value is between 0 and 32000. Defaults to 0.

    authorization_key str

    The authorization key to establish the Express Route Connection.

    enable_internet_security bool

    Is Internet security enabled for this Express Route Connection?

    express_route_circuit_peering_id str

    The ID of the Express Route Circuit Peering that this Express Route Connection connects with. Changing this forces a new resource to be created.

    express_route_gateway_bypass_enabled bool

    Specified whether Fast Path is enabled for Virtual Wan Firewall Hub. Defaults to false.

    express_route_gateway_id str

    The ID of the Express Route Gateway that this Express Route Connection connects with. Changing this forces a new resource to be created.

    name str

    The name which should be used for this Express Route Connection. Changing this forces a new resource to be created.

    routing ExpressRouteConnectionRoutingArgs

    A routing block as defined below.

    routing_weight int

    The routing weight associated to the Express Route Connection. Possible value is between 0 and 32000. Defaults to 0.

    authorizationKey String

    The authorization key to establish the Express Route Connection.

    enableInternetSecurity Boolean

    Is Internet security enabled for this Express Route Connection?

    expressRouteCircuitPeeringId String

    The ID of the Express Route Circuit Peering that this Express Route Connection connects with. Changing this forces a new resource to be created.

    expressRouteGatewayBypassEnabled Boolean

    Specified whether Fast Path is enabled for Virtual Wan Firewall Hub. Defaults to false.

    expressRouteGatewayId String

    The ID of the Express Route Gateway that this Express Route Connection connects with. Changing this forces a new resource to be created.

    name String

    The name which should be used for this Express Route Connection. Changing this forces a new resource to be created.

    routing Property Map

    A routing block as defined below.

    routingWeight Number

    The routing weight associated to the Express Route Connection. Possible value is between 0 and 32000. Defaults to 0.

    Supporting Types

    ExpressRouteConnectionRouting, ExpressRouteConnectionRoutingArgs

    AssociatedRouteTableId string

    The ID of the Virtual Hub Route Table associated with this Express Route Connection.

    InboundRouteMapId string

    The ID of the Route Map associated with this Express Route Connection for inbound routes.

    OutboundRouteMapId string

    The ID of the Route Map associated with this Express Route Connection for outbound routes.

    PropagatedRouteTable ExpressRouteConnectionRoutingPropagatedRouteTable

    A propagated_route_table block as defined below.

    AssociatedRouteTableId string

    The ID of the Virtual Hub Route Table associated with this Express Route Connection.

    InboundRouteMapId string

    The ID of the Route Map associated with this Express Route Connection for inbound routes.

    OutboundRouteMapId string

    The ID of the Route Map associated with this Express Route Connection for outbound routes.

    PropagatedRouteTable ExpressRouteConnectionRoutingPropagatedRouteTable

    A propagated_route_table block as defined below.

    associatedRouteTableId String

    The ID of the Virtual Hub Route Table associated with this Express Route Connection.

    inboundRouteMapId String

    The ID of the Route Map associated with this Express Route Connection for inbound routes.

    outboundRouteMapId String

    The ID of the Route Map associated with this Express Route Connection for outbound routes.

    propagatedRouteTable ExpressRouteConnectionRoutingPropagatedRouteTable

    A propagated_route_table block as defined below.

    associatedRouteTableId string

    The ID of the Virtual Hub Route Table associated with this Express Route Connection.

    inboundRouteMapId string

    The ID of the Route Map associated with this Express Route Connection for inbound routes.

    outboundRouteMapId string

    The ID of the Route Map associated with this Express Route Connection for outbound routes.

    propagatedRouteTable ExpressRouteConnectionRoutingPropagatedRouteTable

    A propagated_route_table block as defined below.

    associated_route_table_id str

    The ID of the Virtual Hub Route Table associated with this Express Route Connection.

    inbound_route_map_id str

    The ID of the Route Map associated with this Express Route Connection for inbound routes.

    outbound_route_map_id str

    The ID of the Route Map associated with this Express Route Connection for outbound routes.

    propagated_route_table ExpressRouteConnectionRoutingPropagatedRouteTable

    A propagated_route_table block as defined below.

    associatedRouteTableId String

    The ID of the Virtual Hub Route Table associated with this Express Route Connection.

    inboundRouteMapId String

    The ID of the Route Map associated with this Express Route Connection for inbound routes.

    outboundRouteMapId String

    The ID of the Route Map associated with this Express Route Connection for outbound routes.

    propagatedRouteTable Property Map

    A propagated_route_table block as defined below.

    ExpressRouteConnectionRoutingPropagatedRouteTable, ExpressRouteConnectionRoutingPropagatedRouteTableArgs

    Labels List<string>

    The list of labels to logically group route tables.

    RouteTableIds List<string>

    A list of IDs of the Virtual Hub Route Table to propagate routes from Express Route Connection to the route table.

    Labels []string

    The list of labels to logically group route tables.

    RouteTableIds []string

    A list of IDs of the Virtual Hub Route Table to propagate routes from Express Route Connection to the route table.

    labels List<String>

    The list of labels to logically group route tables.

    routeTableIds List<String>

    A list of IDs of the Virtual Hub Route Table to propagate routes from Express Route Connection to the route table.

    labels string[]

    The list of labels to logically group route tables.

    routeTableIds string[]

    A list of IDs of the Virtual Hub Route Table to propagate routes from Express Route Connection to the route table.

    labels Sequence[str]

    The list of labels to logically group route tables.

    route_table_ids Sequence[str]

    A list of IDs of the Virtual Hub Route Table to propagate routes from Express Route Connection to the route table.

    labels List<String>

    The list of labels to logically group route tables.

    routeTableIds List<String>

    A list of IDs of the Virtual Hub Route Table to propagate routes from Express Route Connection to the route table.

    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
    

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the azurerm Terraform Provider.

    azure logo

    We recommend using Azure Native.

    Azure Classic v5.49.0 published on Tuesday, Aug 29, 2023 by Pulumi