We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.expressroute.getCircuitPeering
Start a Neo task
Explain and create an azure.expressroute.getCircuitPeering resource
Use this data source to access information about an existing ExpressRoute Circuit Peering.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.expressroute.getCircuitPeering({
peeringType: "example-peering",
expressRouteCircuitName: "example-expressroute",
resourceGroupName: "example-resources",
});
import pulumi
import pulumi_azure as azure
example = azure.expressroute.get_circuit_peering(peering_type="example-peering",
express_route_circuit_name="example-expressroute",
resource_group_name="example-resources")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/expressroute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := expressroute.GetCircuitPeering(ctx, &expressroute.GetCircuitPeeringArgs{
PeeringType: "example-peering",
ExpressRouteCircuitName: "example-expressroute",
ResourceGroupName: "example-resources",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.ExpressRoute.GetCircuitPeering.Invoke(new()
{
PeeringType = "example-peering",
ExpressRouteCircuitName = "example-expressroute",
ResourceGroupName = "example-resources",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.expressroute.ExpressrouteFunctions;
import com.pulumi.azure.expressroute.inputs.GetCircuitPeeringArgs;
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) {
final var example = ExpressrouteFunctions.getCircuitPeering(GetCircuitPeeringArgs.builder()
.peeringType("example-peering")
.expressRouteCircuitName("example-expressroute")
.resourceGroupName("example-resources")
.build());
}
}
variables:
example:
fn::invoke:
function: azure:expressroute:getCircuitPeering
arguments:
peeringType: example-peering
expressRouteCircuitName: example-expressroute
resourceGroupName: example-resources
API Providers
This data source uses the following Azure API Providers:
Microsoft.Network- 2024-05-01
Using getCircuitPeering
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getCircuitPeering(args: GetCircuitPeeringArgs, opts?: InvokeOptions): Promise<GetCircuitPeeringResult>
function getCircuitPeeringOutput(args: GetCircuitPeeringOutputArgs, opts?: InvokeOptions): Output<GetCircuitPeeringResult>def get_circuit_peering(express_route_circuit_name: Optional[str] = None,
peering_type: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCircuitPeeringResult
def get_circuit_peering_output(express_route_circuit_name: Optional[pulumi.Input[str]] = None,
peering_type: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCircuitPeeringResult]func GetCircuitPeering(ctx *Context, args *GetCircuitPeeringArgs, opts ...InvokeOption) (*GetCircuitPeeringResult, error)
func GetCircuitPeeringOutput(ctx *Context, args *GetCircuitPeeringOutputArgs, opts ...InvokeOption) GetCircuitPeeringResultOutput> Note: This function is named GetCircuitPeering in the Go SDK.
public static class GetCircuitPeering
{
public static Task<GetCircuitPeeringResult> InvokeAsync(GetCircuitPeeringArgs args, InvokeOptions? opts = null)
public static Output<GetCircuitPeeringResult> Invoke(GetCircuitPeeringInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCircuitPeeringResult> getCircuitPeering(GetCircuitPeeringArgs args, InvokeOptions options)
public static Output<GetCircuitPeeringResult> getCircuitPeering(GetCircuitPeeringArgs args, InvokeOptions options)
fn::invoke:
function: azure:expressroute/getCircuitPeering:getCircuitPeering
arguments:
# arguments dictionaryThe following arguments are supported:
- Express
Route stringCircuit Name - The name of the ExpressRoute Circuit in which to create the Peering. Changing this forces a new resource to be created.
- Peering
Type string - The type of the ExpressRoute Circuit Peering. Acceptable values include
AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering. - Resource
Group stringName - The name of the resource group in which to create the Express Route Circuit Peering. Changing this forces a new resource to be created.
- Express
Route stringCircuit Name - The name of the ExpressRoute Circuit in which to create the Peering. Changing this forces a new resource to be created.
- Peering
Type string - The type of the ExpressRoute Circuit Peering. Acceptable values include
AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering. - Resource
Group stringName - The name of the resource group in which to create the Express Route Circuit Peering. Changing this forces a new resource to be created.
- express
Route StringCircuit Name - The name of the ExpressRoute Circuit in which to create the Peering. Changing this forces a new resource to be created.
- peering
Type String - The type of the ExpressRoute Circuit Peering. Acceptable values include
AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering. - resource
Group StringName - The name of the resource group in which to create the Express Route Circuit Peering. Changing this forces a new resource to be created.
- express
Route stringCircuit Name - The name of the ExpressRoute Circuit in which to create the Peering. Changing this forces a new resource to be created.
- peering
Type string - The type of the ExpressRoute Circuit Peering. Acceptable values include
AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering. - resource
Group stringName - The name of the resource group in which to create the Express Route Circuit Peering. Changing this forces a new resource to be created.
- express_
route_ strcircuit_ name - The name of the ExpressRoute Circuit in which to create the Peering. Changing this forces a new resource to be created.
- peering_
type str - The type of the ExpressRoute Circuit Peering. Acceptable values include
AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering. - resource_
group_ strname - The name of the resource group in which to create the Express Route Circuit Peering. Changing this forces a new resource to be created.
- express
Route StringCircuit Name - The name of the ExpressRoute Circuit in which to create the Peering. Changing this forces a new resource to be created.
- peering
Type String - The type of the ExpressRoute Circuit Peering. Acceptable values include
AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering. - resource
Group StringName - The name of the resource group in which to create the Express Route Circuit Peering. Changing this forces a new resource to be created.
getCircuitPeering Result
The following output properties are available:
- Azure
Asn int - The ASN used by Azure for the peering.
- Express
Route stringCircuit Name - Gateway
Manager stringEtag - Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4Enabled bool
- Indicates if IPv4 is enabled.
- Peer
Asn int - Peering
Type string - The type of the ExpressRoute Circuit Peering.
- Primary
Azure stringPort - The primary port used by Azure for this peering.
- Primary
Peer stringAddress Prefix - The primary peer address prefix.
- Resource
Group stringName - Route
Filter stringId - Secondary
Azure stringPort - The secondary port used by Azure for this peering.
- Secondary
Peer stringAddress Prefix - The secondary peer address prefix.
- string
- Vlan
Id int - The VLAN ID used for this peering.
- Azure
Asn int - The ASN used by Azure for the peering.
- Express
Route stringCircuit Name - Gateway
Manager stringEtag - Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4Enabled bool
- Indicates if IPv4 is enabled.
- Peer
Asn int - Peering
Type string - The type of the ExpressRoute Circuit Peering.
- Primary
Azure stringPort - The primary port used by Azure for this peering.
- Primary
Peer stringAddress Prefix - The primary peer address prefix.
- Resource
Group stringName - Route
Filter stringId - Secondary
Azure stringPort - The secondary port used by Azure for this peering.
- Secondary
Peer stringAddress Prefix - The secondary peer address prefix.
- string
- Vlan
Id int - The VLAN ID used for this peering.
- azure
Asn Integer - The ASN used by Azure for the peering.
- express
Route StringCircuit Name - gateway
Manager StringEtag - id String
- The provider-assigned unique ID for this managed resource.
- ipv4Enabled Boolean
- Indicates if IPv4 is enabled.
- peer
Asn Integer - peering
Type String - The type of the ExpressRoute Circuit Peering.
- primary
Azure StringPort - The primary port used by Azure for this peering.
- primary
Peer StringAddress Prefix - The primary peer address prefix.
- resource
Group StringName - route
Filter StringId - secondary
Azure StringPort - The secondary port used by Azure for this peering.
- secondary
Peer StringAddress Prefix - The secondary peer address prefix.
- String
- vlan
Id Integer - The VLAN ID used for this peering.
- azure
Asn number - The ASN used by Azure for the peering.
- express
Route stringCircuit Name - gateway
Manager stringEtag - id string
- The provider-assigned unique ID for this managed resource.
- ipv4Enabled boolean
- Indicates if IPv4 is enabled.
- peer
Asn number - peering
Type string - The type of the ExpressRoute Circuit Peering.
- primary
Azure stringPort - The primary port used by Azure for this peering.
- primary
Peer stringAddress Prefix - The primary peer address prefix.
- resource
Group stringName - route
Filter stringId - secondary
Azure stringPort - The secondary port used by Azure for this peering.
- secondary
Peer stringAddress Prefix - The secondary peer address prefix.
- string
- vlan
Id number - The VLAN ID used for this peering.
- azure_
asn int - The ASN used by Azure for the peering.
- express_
route_ strcircuit_ name - gateway_
manager_ stretag - id str
- The provider-assigned unique ID for this managed resource.
- ipv4_
enabled bool - Indicates if IPv4 is enabled.
- peer_
asn int - peering_
type str - The type of the ExpressRoute Circuit Peering.
- primary_
azure_ strport - The primary port used by Azure for this peering.
- primary_
peer_ straddress_ prefix - The primary peer address prefix.
- resource_
group_ strname - route_
filter_ strid - secondary_
azure_ strport - The secondary port used by Azure for this peering.
- secondary_
peer_ straddress_ prefix - The secondary peer address prefix.
- str
- vlan_
id int - The VLAN ID used for this peering.
- azure
Asn Number - The ASN used by Azure for the peering.
- express
Route StringCircuit Name - gateway
Manager StringEtag - id String
- The provider-assigned unique ID for this managed resource.
- ipv4Enabled Boolean
- Indicates if IPv4 is enabled.
- peer
Asn Number - peering
Type String - The type of the ExpressRoute Circuit Peering.
- primary
Azure StringPort - The primary port used by Azure for this peering.
- primary
Peer StringAddress Prefix - The primary peer address prefix.
- resource
Group StringName - route
Filter StringId - secondary
Azure StringPort - The secondary port used by Azure for this peering.
- secondary
Peer StringAddress Prefix - The secondary peer address prefix.
- String
- vlan
Id Number - The VLAN ID used for this peering.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
