summary import { VirtualWanVpnProfileParameters , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function generateVirtualWanVpnServerConfigurationVpnProfile ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const virtualWANName = "wan1" ; const vpnClientParams = { authenticationMethod : "EAPTLS" , vpnServerConfigurationResourceId : "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/vpnServerConfigurations/vpnconfig1" } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . beginGeneratevirtualwanvpnserverconfigurationvpnprofileAndWait ( resourceGroupName , virtualWANName , vpnClientParams ) ; console . log ( result ) ; } generateVirtualWanVpnServerConfigurationVpnProfile ( ) . catch ( console . error ) ;