summary import { VirtualApplianceSite , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function createNetworkVirtualApplianceSite ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const networkVirtualApplianceName = "nva" ; const siteName = "site1" ; const parameters = { addressPrefix : "192.168.1.0/24" , o365Policy : { breakOutCategories : { default : true , allow : true , optimize : true } } } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . virtualApplianceSites . beginCreateOrUpdateAndWait ( resourceGroupName , networkVirtualApplianceName , siteName , parameters ) ; console . log ( result ) ; } createNetworkVirtualApplianceSite ( ) . catch ( console . error ) ;