summary import { ExpressRouteCircuit , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function createExpressRouteCircuit ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const circuitName = "circuitName" ; const parameters = { allowClassicOperations : false , authorizations : [ ] , location : "Brazil South" , peerings : [ ] , serviceProviderProperties : { bandwidthInMbps : 200 , peeringLocation : "Silicon Valley" , serviceProviderName : "Equinix" } , sku : { name : "Standard_MeteredData" , family : "MeteredData" , tier : "Standard" } } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . expressRouteCircuits . beginCreateOrUpdateAndWait ( resourceGroupName , circuitName , parameters ) ; console . log ( result ) ; } createExpressRouteCircuit ( ) . catch ( console . error ) ;