summary import { GenerateExpressRoutePortsLOARequest , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function generateExpressRoutePortLoa ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const expressRoutePortName = "portName" ; const request = { customerName : "customerName" } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . expressRoutePorts . generateLOA ( resourceGroupName , expressRoutePortName , request ) ; console . log ( result ) ; } generateExpressRoutePortLoa ( ) . catch ( console . error ) ;