We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.expressroute.getCircuitPeering
Explore with Pulumi AI
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
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:
- ExpressRoute stringCircuit Name 
- The name of the ExpressRoute Circuit in which to create the Peering. Changing this forces a new resource to be created.
- PeeringType string
- The type of the ExpressRoute Circuit Peering. Acceptable values include AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering.
- ResourceGroup 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.
- ExpressRoute stringCircuit Name 
- The name of the ExpressRoute Circuit in which to create the Peering. Changing this forces a new resource to be created.
- PeeringType string
- The type of the ExpressRoute Circuit Peering. Acceptable values include AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering.
- ResourceGroup 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.
- expressRoute StringCircuit Name 
- The name of the ExpressRoute Circuit in which to create the Peering. Changing this forces a new resource to be created.
- peeringType String
- The type of the ExpressRoute Circuit Peering. Acceptable values include AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering.
- resourceGroup 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.
- expressRoute stringCircuit Name 
- The name of the ExpressRoute Circuit in which to create the Peering. Changing this forces a new resource to be created.
- peeringType string
- The type of the ExpressRoute Circuit Peering. Acceptable values include AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering.
- resourceGroup 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.
- expressRoute StringCircuit Name 
- The name of the ExpressRoute Circuit in which to create the Peering. Changing this forces a new resource to be created.
- peeringType String
- The type of the ExpressRoute Circuit Peering. Acceptable values include AzurePrivatePeering,AzurePublicPeeringandMicrosoftPeering.
- resourceGroup 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:
- AzureAsn int
- The ASN used by Azure for the peering.
- ExpressRoute stringCircuit Name 
- GatewayManager stringEtag 
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4Enabled bool
- Indicates if IPv4 is enabled.
- PeerAsn int
- PeeringType string
- The type of the ExpressRoute Circuit Peering.
- PrimaryAzure stringPort 
- The primary port used by Azure for this peering.
- PrimaryPeer stringAddress Prefix 
- The primary peer address prefix.
- ResourceGroup stringName 
- RouteFilter stringId 
- SecondaryAzure stringPort 
- The secondary port used by Azure for this peering.
- SecondaryPeer stringAddress Prefix 
- The secondary peer address prefix.
- string
- VlanId int
- The VLAN ID used for this peering.
- AzureAsn int
- The ASN used by Azure for the peering.
- ExpressRoute stringCircuit Name 
- GatewayManager stringEtag 
- Id string
- The provider-assigned unique ID for this managed resource.
- Ipv4Enabled bool
- Indicates if IPv4 is enabled.
- PeerAsn int
- PeeringType string
- The type of the ExpressRoute Circuit Peering.
- PrimaryAzure stringPort 
- The primary port used by Azure for this peering.
- PrimaryPeer stringAddress Prefix 
- The primary peer address prefix.
- ResourceGroup stringName 
- RouteFilter stringId 
- SecondaryAzure stringPort 
- The secondary port used by Azure for this peering.
- SecondaryPeer stringAddress Prefix 
- The secondary peer address prefix.
- string
- VlanId int
- The VLAN ID used for this peering.
- azureAsn Integer
- The ASN used by Azure for the peering.
- expressRoute StringCircuit Name 
- gatewayManager StringEtag 
- id String
- The provider-assigned unique ID for this managed resource.
- ipv4Enabled Boolean
- Indicates if IPv4 is enabled.
- peerAsn Integer
- peeringType String
- The type of the ExpressRoute Circuit Peering.
- primaryAzure StringPort 
- The primary port used by Azure for this peering.
- primaryPeer StringAddress Prefix 
- The primary peer address prefix.
- resourceGroup StringName 
- routeFilter StringId 
- secondaryAzure StringPort 
- The secondary port used by Azure for this peering.
- secondaryPeer StringAddress Prefix 
- The secondary peer address prefix.
- String
- vlanId Integer
- The VLAN ID used for this peering.
- azureAsn number
- The ASN used by Azure for the peering.
- expressRoute stringCircuit Name 
- gatewayManager stringEtag 
- id string
- The provider-assigned unique ID for this managed resource.
- ipv4Enabled boolean
- Indicates if IPv4 is enabled.
- peerAsn number
- peeringType string
- The type of the ExpressRoute Circuit Peering.
- primaryAzure stringPort 
- The primary port used by Azure for this peering.
- primaryPeer stringAddress Prefix 
- The primary peer address prefix.
- resourceGroup stringName 
- routeFilter stringId 
- secondaryAzure stringPort 
- The secondary port used by Azure for this peering.
- secondaryPeer stringAddress Prefix 
- The secondary peer address prefix.
- string
- vlanId 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.
- azureAsn Number
- The ASN used by Azure for the peering.
- expressRoute StringCircuit Name 
- gatewayManager StringEtag 
- id String
- The provider-assigned unique ID for this managed resource.
- ipv4Enabled Boolean
- Indicates if IPv4 is enabled.
- peerAsn Number
- peeringType String
- The type of the ExpressRoute Circuit Peering.
- primaryAzure StringPort 
- The primary port used by Azure for this peering.
- primaryPeer StringAddress Prefix 
- The primary peer address prefix.
- resourceGroup StringName 
- routeFilter StringId 
- secondaryAzure StringPort 
- The secondary port used by Azure for this peering.
- secondaryPeer StringAddress Prefix 
- The secondary peer address prefix.
- String
- vlanId 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.