summary import { AvailableProvidersListParameters , NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getAvailableProvidersList ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const networkWatcherName = "nw1" ; const parameters = { azureLocations : [ "West US" ] , city : "seattle" , country : "United States" , state : "washington" } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const result = await client . networkWatchers . beginListAvailableProvidersAndWait ( resourceGroupName , networkWatcherName , parameters ) ; console . log ( result ) ; } getAvailableProvidersList ( ) . catch ( console . error ) ;