summary import { WebSiteManagementClient } from "@msinternal/web-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getNetworkTracesForASite ( ) { const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345" ; const resourceGroupName = "testrg123" ; const name = "SampleApp" ; const operationId = "c291433b-53ad-4c49-8cae-0a293eae1c6d" ; const slot = "Production" ; const credential = new DefaultAzureCredential ( ) ; const client = new WebSiteManagementClient ( credential , subscriptionId ) ; const result = await client . webApps . getNetworkTracesSlotV2 ( resourceGroupName , name , operationId , slot ) ; console . log ( result ) ; } getNetworkTracesForASite ( ) . catch ( console . error ) ;