summary import { VpnDeviceScriptParameters , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getVpnDeviceConfigurationScript ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const virtualNetworkGatewayConnectionName = "vpngw" ; const parameters = { deviceFamily : "ISR" , firmwareVersion : "IOS 15.1 (Preview)" , vendor : "Cisco" } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . virtualNetworkGateways . vpnDeviceConfigurationScript ( resourceGroupName , virtualNetworkGatewayConnectionName , parameters ) ; console . log ( result ) ; } getVpnDeviceConfigurationScript ( ) . catch ( console . error ) ;