summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function listExpressRouteCircuitConnection ( ) { const subscriptionId = "subid1" ; const resourceGroupName = "rg1" ; const circuitName = "ExpressRouteARMCircuitA" ; const peeringName = "AzurePrivatePeering" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const resArray = new Array ( ) ; for await ( let item of client . expressRouteCircuitConnections . list ( resourceGroupName , circuitName , peeringName ) ) { resArray . push ( item ) ; } console . log ( resArray ) ; } listExpressRouteCircuitConnection ( ) . catch ( console . error ) ;