summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function getListOfServiceTagsWithNoAddressPrefixes ( ) { const subscriptionId = "subid" ; const location = "westeurope" ; const noAddressPrefixes = true ; const options = { noAddressPrefixes : noAddressPrefixes } ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const resArray = new Array ( ) ; for await ( let item of client . serviceTagInformationOperations . list ( location , options ) ) { resArray . push ( item ) ; } console . log ( resArray ) ; } getListOfServiceTagsWithNoAddressPrefixes ( ) . catch ( console . error ) ;