summary import { ExpressRouteCrossConnection , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function updateExpressRouteCrossConnection ( ) { const subscriptionId = "subid" ; const resourceGroupName = "CrossConnection-SiliconValley" ; const crossConnectionName = "<circuitServiceKey>" ; const parameters = { serviceProviderProvisioningState : "NotProvisioned" } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . expressRouteCrossConnections . beginCreateOrUpdateAndWait ( resourceGroupName , crossConnectionName , parameters ) ; console . log ( result ) ; } updateExpressRouteCrossConnection ( ) . catch ( console . error ) ;