summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getExpressRouteCircuitPeering ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const circuitName = "circuitName" ; const peeringName = "MicrosoftPeering" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . expressRouteCircuitPeerings . get ( resourceGroupName , circuitName , peeringName ) ; console . log ( result ) ; } getExpressRouteCircuitPeering ( ) . catch ( console . error ) ;