summary import { VirtualWAN , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function virtualWanCreate ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const virtualWANName = "wan1" ; const WANParameters = { typePropertiesType : "Basic" , disableVpnEncryption : false , location : "West US" , tags : { key1 : "value1" } } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . virtualWans . beginCreateOrUpdateAndWait ( resourceGroupName , virtualWANName , WANParameters ) ; console . log ( result ) ; } virtualWanCreate ( ) . catch ( console . error ) ;