summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function listAllFirewallPolicyRuleCollectionGroupWithWebCategories ( ) { const subscriptionId = "e747cc13-97d4-4a79-b463-42d7f4e558f2" ; const resourceGroupName = "rg1" ; const firewallPolicyName = "firewallPolicy" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const resArray = new Array ( ) ; for await ( let item of client . firewallPolicyRuleCollectionGroups . list ( resourceGroupName , firewallPolicyName ) ) { resArray . push ( item ) ; } console . log ( resArray ) ; } listAllFirewallPolicyRuleCollectionGroupWithWebCategories ( ) . catch ( console . error ) ;