Express Route Circuit Args
Manages an ExpressRoute circuit.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "exprtTest",
location: "West Europe",
});
const exampleExpressRouteCircuit = new azure.network.ExpressRouteCircuit("example", {
name: "expressRoute1",
resourceGroupName: example.name,
location: example.location,
serviceProviderName: "Equinix",
peeringLocation: "Silicon Valley",
bandwidthInMbps: 50,
sku: {
tier: "Standard",
family: "MeteredData",
},
tags: {
environment: "Production",
},
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="exprtTest",
location="West Europe")
example_express_route_circuit = azure.network.ExpressRouteCircuit("example",
name="expressRoute1",
resource_group_name=example.name,
location=example.location,
service_provider_name="Equinix",
peering_location="Silicon Valley",
bandwidth_in_mbps=50,
sku={
"tier": "Standard",
"family": "MeteredData",
},
tags={
"environment": "Production",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "exprtTest",
Location = "West Europe",
});
var exampleExpressRouteCircuit = new Azure.Network.ExpressRouteCircuit("example", new()
{
Name = "expressRoute1",
ResourceGroupName = example.Name,
Location = example.Location,
ServiceProviderName = "Equinix",
PeeringLocation = "Silicon Valley",
BandwidthInMbps = 50,
Sku = new Azure.Network.Inputs.ExpressRouteCircuitSkuArgs
{
Tier = "Standard",
Family = "MeteredData",
},
Tags =
{
{ "environment", "Production" },
},
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/network"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("exprtTest"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = network.NewExpressRouteCircuit(ctx, "example", &network.ExpressRouteCircuitArgs{
Name: pulumi.String("expressRoute1"),
ResourceGroupName: example.Name,
Location: example.Location,
ServiceProviderName: pulumi.String("Equinix"),
PeeringLocation: pulumi.String("Silicon Valley"),
BandwidthInMbps: pulumi.Int(50),
Sku: &network.ExpressRouteCircuitSkuArgs{
Tier: pulumi.String("Standard"),
Family: pulumi.String("MeteredData"),
},
Tags: pulumi.StringMap{
"environment": pulumi.String("Production"),
},
})
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.ExpressRouteCircuit;
import com.pulumi.azure.network.ExpressRouteCircuitArgs;
import com.pulumi.azure.network.inputs.ExpressRouteCircuitSkuArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("exprtTest")
.location("West Europe")
.build());
var exampleExpressRouteCircuit = new ExpressRouteCircuit("exampleExpressRouteCircuit", ExpressRouteCircuitArgs.builder()
.name("expressRoute1")
.resourceGroupName(example.name())
.location(example.location())
.serviceProviderName("Equinix")
.peeringLocation("Silicon Valley")
.bandwidthInMbps(50)
.sku(ExpressRouteCircuitSkuArgs.builder()
.tier("Standard")
.family("MeteredData")
.build())
.tags(Map.of("environment", "Production"))
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: exprtTest
location: West Europe
exampleExpressRouteCircuit:
type: azure:network:ExpressRouteCircuit
name: example
properties:
name: expressRoute1
resourceGroupName: ${example.name}
location: ${example.location}
serviceProviderName: Equinix
peeringLocation: Silicon Valley
bandwidthInMbps: 50
sku:
tier: Standard
family: MeteredData
tags:
environment: Production
Import
ExpressRoute circuits can be imported using the resource id
, e.g.
$ pulumi import azure:network/expressRouteCircuit:ExpressRouteCircuit myExpressRoute /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/expressRouteCircuits/myExpressRoute
Constructors
Properties
Allow the circuit to interact with classic (RDFE) resources. Defaults to false
.
The authorization key. This can be used to set up an ExpressRoute Circuit with an ExpressRoute Port from another subscription.
The bandwidth in Gbps of the circuit being created on the Express Route Port.
The bandwidth in Mbps of the circuit being created on the Service Provider.
The ID of the Express Route Port this Express Route Circuit is based on. Changing this forces a new resource to be created.
The name of the peering location and not the Azure resource location. Changing this forces a new resource to be created.
Enable rate limiting for the circuit. Only works with ExpressRoute Ports. Defaults to false
.
The name of the resource group in which to create the ExpressRoute circuit. Changing this forces a new resource to be created.
The name of the ExpressRoute Service Provider. Changing this forces a new resource to be created.
A sku
block for the ExpressRoute circuit as documented below.