summary import { NetworkManagementClient } from "@msinternal/network-resource-manager" ; import { DefaultAzureCredential } from "@azure/identity" ; async function listVirtualMachineScaleSetNetworkInterfaceIPConfigurations ( ) { const subscriptionId = "subid" ; const resourceGroupName = "rg1" ; const virtualMachineScaleSetName = "vmss1" ; const virtualmachineIndex = "2" ; const networkInterfaceName = "nic1" ; const credential = new DefaultAzureCredential ( ) ; const client = new NetworkManagementClient ( credential , subscriptionId ) ; const resArray = new Array ( ) ; for await ( let item of client . networkInterfaces . listVirtualMachineScaleSetIpConfigurations ( resourceGroupName , virtualMachineScaleSetName , virtualmachineIndex , networkInterfaceName ) ) { resArray . push ( item ) ; } console . log ( resArray ) ; } listVirtualMachineScaleSetNetworkInterfaceIPConfigurations ( ) . catch ( console . error ) ;