summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function expressRoutePortsLocationGet ( ) { const subscriptionId = "subid" ; const locationName = "locationName" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . expressRoutePortsLocations . get ( locationName ) ; console . log ( result ) ; } expressRoutePortsLocationGet ( ) . catch ( console . error ) ;