summary import { VerificationIPFlowParameters , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function ipFlowVerify ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const networkWatcherName = "nw1" ; const parameters = { direction : "Outbound" , localIPAddress : "10.2.0.4" , localPort : "80" , remoteIPAddress : "121.10.1.1" , remotePort : "80" , targetResourceId : "/subscriptions/subid/resourceGroups/rg2/providers/Microsoft.Compute/virtualMachines/vm1" , protocol : "TCP" } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . networkWatchers . beginVerifyIPFlowAndWait ( resourceGroupName , networkWatcherName , parameters ) ; console . log ( result ) ; } ipFlowVerify ( ) . catch ( console . error ) ;