Running the Get-AksHciClusterNetwork command provides a list of all virtual network configurations. However, the command does not show the current allocation of the IP addresses.
To find out what IP addresses are currently in use in a virtual network, use the steps below:
To get the group, run the following command:
Get-MocGroup -location MocLocation
To get the list of IP addresses that are currently in use, and the list of available or used virtual IP addresses, run the following command:
Get-MocNetworkInterface -Group | ConvertTo-Json -depth 10
Use the following command to view the list of virtual IP addresses that are currently in use:
Get-MocLoadBalancer -Group | ConvertTo-Json -depth 10