summary import { AzureReachabilityReportParameters , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getAzureReachabilityReport ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const networkWatcherName = "nw1" ; const parameters = { azureLocations : [ "West US" ] , endTime : new Date ( "2017-09-10T00:00:00Z" ) , providerLocation : { country : "United States" , state : "washington" } , providers : [ "Frontier Communications of America, Inc. - ASN 5650" ] , startTime : new Date ( "2017-09-07T00:00:00Z" ) } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . networkWatchers . beginGetAzureReachabilityReportAndWait ( resourceGroupName , networkWatcherName , parameters ) ; console . log ( result ) ; } getAzureReachabilityReport ( ) . catch ( console . error ) ;