Azure Native

v1.80.0 published on Tuesday, Oct 4, 2022 by Pulumi

ExpressRouteConnection

ExpressRouteConnection resource. API Version: 2020-11-01.

Example Usage

ExpressRouteConnectionCreate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var expressRouteConnection = new AzureNative.Network.ExpressRouteConnection("expressRouteConnection", new()
    {
        AuthorizationKey = "authorizationKey",
        ConnectionName = "connectionName",
        ExpressRouteCircuitPeering = new AzureNative.Network.Inputs.ExpressRouteCircuitPeeringIdArgs
        {
            Id = "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering",
        },
        ExpressRouteGatewayName = "gateway-2",
        Id = "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName",
        Name = "connectionName",
        ResourceGroupName = "resourceGroupName",
        RoutingWeight = 2,
    });

});
package main

import (
	network "github.com/pulumi/pulumi-azure-native/sdk/go/azure/network"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewExpressRouteConnection(ctx, "expressRouteConnection", &network.ExpressRouteConnectionArgs{
			AuthorizationKey: pulumi.String("authorizationKey"),
			ConnectionName:   pulumi.String("connectionName"),
			ExpressRouteCircuitPeering: &network.ExpressRouteCircuitPeeringIdArgs{
				Id: pulumi.String("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering"),
			},
			ExpressRouteGatewayName: pulumi.String("gateway-2"),
			Id:                      pulumi.String("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName"),
			Name:                    pulumi.String("connectionName"),
			ResourceGroupName:       pulumi.String("resourceGroupName"),
			RoutingWeight:           pulumi.Int(2),
		})
		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.network.ExpressRouteConnection;
import com.pulumi.azurenative.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 expressRouteConnection = new ExpressRouteConnection("expressRouteConnection", ExpressRouteConnectionArgs.builder()        
            .authorizationKey("authorizationKey")
            .connectionName("connectionName")
            .expressRouteCircuitPeering(Map.of("id", "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering"))
            .expressRouteGatewayName("gateway-2")
            .id("/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName")
            .name("connectionName")
            .resourceGroupName("resourceGroupName")
            .routingWeight(2)
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

express_route_connection = azure_native.network.ExpressRouteConnection("expressRouteConnection",
    authorization_key="authorizationKey",
    connection_name="connectionName",
    express_route_circuit_peering=azure_native.network.ExpressRouteCircuitPeeringIdArgs(
        id="/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering",
    ),
    express_route_gateway_name="gateway-2",
    id="/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName",
    name="connectionName",
    resource_group_name="resourceGroupName",
    routing_weight=2)
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const expressRouteConnection = new azure_native.network.ExpressRouteConnection("expressRouteConnection", {
    authorizationKey: "authorizationKey",
    connectionName: "connectionName",
    expressRouteCircuitPeering: {
        id: "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering",
    },
    expressRouteGatewayName: "gateway-2",
    id: "/subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName",
    name: "connectionName",
    resourceGroupName: "resourceGroupName",
    routingWeight: 2,
});
resources:
  expressRouteConnection:
    type: azure-native:network:ExpressRouteConnection
    properties:
      authorizationKey: authorizationKey
      connectionName: connectionName
      expressRouteCircuitPeering:
        id: /subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteCircuits/circuitName/peerings/AzurePrivatePeering
      expressRouteGatewayName: gateway-2
      id: /subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName
      name: connectionName
      resourceGroupName: resourceGroupName
      routingWeight: 2

Create a 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,
                           connection_name: Optional[str] = None,
                           enable_internet_security: Optional[bool] = None,
                           express_route_circuit_peering: Optional[ExpressRouteCircuitPeeringIdArgs] = None,
                           express_route_gateway_bypass: Optional[bool] = None,
                           express_route_gateway_name: Optional[str] = None,
                           id: Optional[str] = None,
                           name: Optional[str] = None,
                           resource_group_name: Optional[str] = None,
                           routing_configuration: Optional[RoutingConfigurationArgs] = 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-native: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:

ExpressRouteCircuitPeering Pulumi.AzureNative.Network.Inputs.ExpressRouteCircuitPeeringIdArgs

The ExpressRoute circuit peering.

ExpressRouteGatewayName string

The name of the ExpressRoute gateway.

Name string

The name of the resource.

ResourceGroupName string

The name of the resource group.

AuthorizationKey string

Authorization key to establish the connection.

ConnectionName string

The name of the connection subresource.

EnableInternetSecurity bool

Enable internet security.

ExpressRouteGatewayBypass bool

Enable FastPath to vWan Firewall hub.

Id string

Resource ID.

RoutingConfiguration Pulumi.AzureNative.Network.Inputs.RoutingConfigurationArgs

The Routing Configuration indicating the associated and propagated route tables on this connection.

RoutingWeight int

The routing weight associated to the connection.

ExpressRouteCircuitPeering ExpressRouteCircuitPeeringIdArgs

The ExpressRoute circuit peering.

ExpressRouteGatewayName string

The name of the ExpressRoute gateway.

Name string

The name of the resource.

ResourceGroupName string

The name of the resource group.

AuthorizationKey string

Authorization key to establish the connection.

ConnectionName string

The name of the connection subresource.

EnableInternetSecurity bool

Enable internet security.

ExpressRouteGatewayBypass bool

Enable FastPath to vWan Firewall hub.

Id string

Resource ID.

RoutingConfiguration RoutingConfigurationArgs

The Routing Configuration indicating the associated and propagated route tables on this connection.

RoutingWeight int

The routing weight associated to the connection.

expressRouteCircuitPeering ExpressRouteCircuitPeeringIdArgs

The ExpressRoute circuit peering.

expressRouteGatewayName String

The name of the ExpressRoute gateway.

name String

The name of the resource.

resourceGroupName String

The name of the resource group.

authorizationKey String

Authorization key to establish the connection.

connectionName String

The name of the connection subresource.

enableInternetSecurity Boolean

Enable internet security.

expressRouteGatewayBypass Boolean

Enable FastPath to vWan Firewall hub.

id String

Resource ID.

routingConfiguration RoutingConfigurationArgs

The Routing Configuration indicating the associated and propagated route tables on this connection.

routingWeight Integer

The routing weight associated to the connection.

expressRouteCircuitPeering ExpressRouteCircuitPeeringIdArgs

The ExpressRoute circuit peering.

expressRouteGatewayName string

The name of the ExpressRoute gateway.

name string

The name of the resource.

resourceGroupName string

The name of the resource group.

authorizationKey string

Authorization key to establish the connection.

connectionName string

The name of the connection subresource.

enableInternetSecurity boolean

Enable internet security.

expressRouteGatewayBypass boolean

Enable FastPath to vWan Firewall hub.

id string

Resource ID.

routingConfiguration RoutingConfigurationArgs

The Routing Configuration indicating the associated and propagated route tables on this connection.

routingWeight number

The routing weight associated to the connection.

express_route_circuit_peering ExpressRouteCircuitPeeringIdArgs

The ExpressRoute circuit peering.

express_route_gateway_name str

The name of the ExpressRoute gateway.

name str

The name of the resource.

resource_group_name str

The name of the resource group.

authorization_key str

Authorization key to establish the connection.

connection_name str

The name of the connection subresource.

enable_internet_security bool

Enable internet security.

express_route_gateway_bypass bool

Enable FastPath to vWan Firewall hub.

id str

Resource ID.

routing_configuration RoutingConfigurationArgs

The Routing Configuration indicating the associated and propagated route tables on this connection.

routing_weight int

The routing weight associated to the connection.

expressRouteCircuitPeering Property Map

The ExpressRoute circuit peering.

expressRouteGatewayName String

The name of the ExpressRoute gateway.

name String

The name of the resource.

resourceGroupName String

The name of the resource group.

authorizationKey String

Authorization key to establish the connection.

connectionName String

The name of the connection subresource.

enableInternetSecurity Boolean

Enable internet security.

expressRouteGatewayBypass Boolean

Enable FastPath to vWan Firewall hub.

id String

Resource ID.

routingConfiguration Property Map

The Routing Configuration indicating the associated and propagated route tables on this connection.

routingWeight Number

The routing weight associated to the connection.

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.

ProvisioningState string

The provisioning state of the express route connection resource.

Id string

The provider-assigned unique ID for this managed resource.

ProvisioningState string

The provisioning state of the express route connection resource.

id String

The provider-assigned unique ID for this managed resource.

provisioningState String

The provisioning state of the express route connection resource.

id string

The provider-assigned unique ID for this managed resource.

provisioningState string

The provisioning state of the express route connection resource.

id str

The provider-assigned unique ID for this managed resource.

provisioning_state str

The provisioning state of the express route connection resource.

id String

The provider-assigned unique ID for this managed resource.

provisioningState String

The provisioning state of the express route connection resource.

Supporting Types

ExpressRouteCircuitPeeringId

Id string

The ID of the ExpressRoute circuit peering.

Id string

The ID of the ExpressRoute circuit peering.

id String

The ID of the ExpressRoute circuit peering.

id string

The ID of the ExpressRoute circuit peering.

id str

The ID of the ExpressRoute circuit peering.

id String

The ID of the ExpressRoute circuit peering.

ExpressRouteCircuitPeeringIdResponse

Id string

The ID of the ExpressRoute circuit peering.

Id string

The ID of the ExpressRoute circuit peering.

id String

The ID of the ExpressRoute circuit peering.

id string

The ID of the ExpressRoute circuit peering.

id str

The ID of the ExpressRoute circuit peering.

id String

The ID of the ExpressRoute circuit peering.

PropagatedRouteTable

Ids List<Pulumi.AzureNative.Network.Inputs.SubResource>

The list of resource ids of all the RouteTables.

Labels List<string>

The list of labels.

Ids []SubResource

The list of resource ids of all the RouteTables.

Labels []string

The list of labels.

ids List<SubResource>

The list of resource ids of all the RouteTables.

labels List<String>

The list of labels.

ids SubResource[]

The list of resource ids of all the RouteTables.

labels string[]

The list of labels.

ids Sequence[SubResource]

The list of resource ids of all the RouteTables.

labels Sequence[str]

The list of labels.

ids List<Property Map>

The list of resource ids of all the RouteTables.

labels List<String>

The list of labels.

PropagatedRouteTableResponse

Ids List<Pulumi.AzureNative.Network.Inputs.SubResourceResponse>

The list of resource ids of all the RouteTables.

Labels List<string>

The list of labels.

Ids []SubResourceResponse

The list of resource ids of all the RouteTables.

Labels []string

The list of labels.

ids List<SubResourceResponse>

The list of resource ids of all the RouteTables.

labels List<String>

The list of labels.

ids SubResourceResponse[]

The list of resource ids of all the RouteTables.

labels string[]

The list of labels.

ids Sequence[SubResourceResponse]

The list of resource ids of all the RouteTables.

labels Sequence[str]

The list of labels.

ids List<Property Map>

The list of resource ids of all the RouteTables.

labels List<String>

The list of labels.

RoutingConfiguration

AssociatedRouteTable Pulumi.AzureNative.Network.Inputs.SubResource

The resource id RouteTable associated with this RoutingConfiguration.

PropagatedRouteTables Pulumi.AzureNative.Network.Inputs.PropagatedRouteTable

The list of RouteTables to advertise the routes to.

VnetRoutes Pulumi.AzureNative.Network.Inputs.VnetRoute

List of routes that control routing from VirtualHub into a virtual network connection.

AssociatedRouteTable SubResource

The resource id RouteTable associated with this RoutingConfiguration.

PropagatedRouteTables PropagatedRouteTable

The list of RouteTables to advertise the routes to.

VnetRoutes VnetRoute

List of routes that control routing from VirtualHub into a virtual network connection.

associatedRouteTable SubResource

The resource id RouteTable associated with this RoutingConfiguration.

propagatedRouteTables PropagatedRouteTable

The list of RouteTables to advertise the routes to.

vnetRoutes VnetRoute

List of routes that control routing from VirtualHub into a virtual network connection.

associatedRouteTable SubResource

The resource id RouteTable associated with this RoutingConfiguration.

propagatedRouteTables PropagatedRouteTable

The list of RouteTables to advertise the routes to.

vnetRoutes VnetRoute

List of routes that control routing from VirtualHub into a virtual network connection.

associated_route_table SubResource

The resource id RouteTable associated with this RoutingConfiguration.

propagated_route_tables PropagatedRouteTable

The list of RouteTables to advertise the routes to.

vnet_routes VnetRoute

List of routes that control routing from VirtualHub into a virtual network connection.

associatedRouteTable Property Map

The resource id RouteTable associated with this RoutingConfiguration.

propagatedRouteTables Property Map

The list of RouteTables to advertise the routes to.

vnetRoutes Property Map

List of routes that control routing from VirtualHub into a virtual network connection.

RoutingConfigurationResponse

AssociatedRouteTable Pulumi.AzureNative.Network.Inputs.SubResourceResponse

The resource id RouteTable associated with this RoutingConfiguration.

PropagatedRouteTables Pulumi.AzureNative.Network.Inputs.PropagatedRouteTableResponse

The list of RouteTables to advertise the routes to.

VnetRoutes Pulumi.AzureNative.Network.Inputs.VnetRouteResponse

List of routes that control routing from VirtualHub into a virtual network connection.

AssociatedRouteTable SubResourceResponse

The resource id RouteTable associated with this RoutingConfiguration.

PropagatedRouteTables PropagatedRouteTableResponse

The list of RouteTables to advertise the routes to.

VnetRoutes VnetRouteResponse

List of routes that control routing from VirtualHub into a virtual network connection.

associatedRouteTable SubResourceResponse

The resource id RouteTable associated with this RoutingConfiguration.

propagatedRouteTables PropagatedRouteTableResponse

The list of RouteTables to advertise the routes to.

vnetRoutes VnetRouteResponse

List of routes that control routing from VirtualHub into a virtual network connection.

associatedRouteTable SubResourceResponse

The resource id RouteTable associated with this RoutingConfiguration.

propagatedRouteTables PropagatedRouteTableResponse

The list of RouteTables to advertise the routes to.

vnetRoutes VnetRouteResponse

List of routes that control routing from VirtualHub into a virtual network connection.

associated_route_table SubResourceResponse

The resource id RouteTable associated with this RoutingConfiguration.

propagated_route_tables PropagatedRouteTableResponse

The list of RouteTables to advertise the routes to.

vnet_routes VnetRouteResponse

List of routes that control routing from VirtualHub into a virtual network connection.

associatedRouteTable Property Map

The resource id RouteTable associated with this RoutingConfiguration.

propagatedRouteTables Property Map

The list of RouteTables to advertise the routes to.

vnetRoutes Property Map

List of routes that control routing from VirtualHub into a virtual network connection.

StaticRoute

AddressPrefixes List<string>

List of all address prefixes.

Name string

The name of the StaticRoute that is unique within a VnetRoute.

NextHopIpAddress string

The ip address of the next hop.

AddressPrefixes []string

List of all address prefixes.

Name string

The name of the StaticRoute that is unique within a VnetRoute.

NextHopIpAddress string

The ip address of the next hop.

addressPrefixes List<String>

List of all address prefixes.

name String

The name of the StaticRoute that is unique within a VnetRoute.

nextHopIpAddress String

The ip address of the next hop.

addressPrefixes string[]

List of all address prefixes.

name string

The name of the StaticRoute that is unique within a VnetRoute.

nextHopIpAddress string

The ip address of the next hop.

address_prefixes Sequence[str]

List of all address prefixes.

name str

The name of the StaticRoute that is unique within a VnetRoute.

next_hop_ip_address str

The ip address of the next hop.

addressPrefixes List<String>

List of all address prefixes.

name String

The name of the StaticRoute that is unique within a VnetRoute.

nextHopIpAddress String

The ip address of the next hop.

StaticRouteResponse

AddressPrefixes List<string>

List of all address prefixes.

Name string

The name of the StaticRoute that is unique within a VnetRoute.

NextHopIpAddress string

The ip address of the next hop.

AddressPrefixes []string

List of all address prefixes.

Name string

The name of the StaticRoute that is unique within a VnetRoute.

NextHopIpAddress string

The ip address of the next hop.

addressPrefixes List<String>

List of all address prefixes.

name String

The name of the StaticRoute that is unique within a VnetRoute.

nextHopIpAddress String

The ip address of the next hop.

addressPrefixes string[]

List of all address prefixes.

name string

The name of the StaticRoute that is unique within a VnetRoute.

nextHopIpAddress string

The ip address of the next hop.

address_prefixes Sequence[str]

List of all address prefixes.

name str

The name of the StaticRoute that is unique within a VnetRoute.

next_hop_ip_address str

The ip address of the next hop.

addressPrefixes List<String>

List of all address prefixes.

name String

The name of the StaticRoute that is unique within a VnetRoute.

nextHopIpAddress String

The ip address of the next hop.

SubResource

Id string

Resource Id.

Id string

Resource Id.

id String

Resource Id.

id string

Resource Id.

id str

Resource Id.

id String

Resource Id.

SubResourceResponse

Id string

Resource ID.

Id string

Resource ID.

id String

Resource ID.

id string

Resource ID.

id str

Resource ID.

id String

Resource ID.

VnetRoute

StaticRoutes []StaticRoute

List of all Static Routes.

staticRoutes List<StaticRoute>

List of all Static Routes.

staticRoutes StaticRoute[]

List of all Static Routes.

static_routes Sequence[StaticRoute]

List of all Static Routes.

staticRoutes List<Property Map>

List of all Static Routes.

VnetRouteResponse

StaticRoutes []StaticRouteResponse

List of all Static Routes.

staticRoutes List<StaticRouteResponse>

List of all Static Routes.

staticRoutes StaticRouteResponse[]

List of all Static Routes.

staticRoutes List<Property Map>

List of all Static Routes.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:ExpressRouteConnection connectionName /subscriptions/subid/resourceGroups/resourceGroupName/providers/Microsoft.Network/expressRouteGateways/gateway-2/expressRouteConnections/connectionName 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0