summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getFlowLog ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const networkWatcherName = "nw1" ; const flowLogName = "flowLog1" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . flowLogs . get ( resourceGroupName , networkWatcherName , flowLogName ) ; console . log ( result ) ; } getFlowLog ( ) . catch ( console . error ) ;