summary import { VpnConnectionPacketCaptureStopParameters , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function startPacketCaptureOnVpnConnectionWithoutFilter ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const gatewayName = "gateway1" ; const vpnConnectionName = "vpnConnection1" ; const parameters = { linkConnectionNames : [ "vpnSiteLink1" , "vpnSiteLink2" ] , sasUrl : "https://teststorage.blob.core.windows.net/?sv=2018-03-28&ss=bfqt&srt=sco&sp=rwdlacup&se=2019-09-13T07:44:05Z&st=2019-09-06T23:44:05Z&spr=https&sig=V1h9D1riltvZMI69d6ihENnFo%2FrCvTqGgjO2lf%2FVBhE%3D" } ; const options = { parameters : parameters } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . vpnConnections . beginStopPacketCaptureAndWait ( resourceGroupName , gatewayName , vpnConnectionName , options ) ; console . log ( result ) ; } startPacketCaptureOnVpnConnectionWithoutFilter ( ) . catch ( console . error ) ;