Function: ListPublicIPs()
Description
List all public IPs that are returned by Azure Resource Graph. This can be used for enrichment or filtering.
Query · kql
let ListPublicIPs = arg("").Resources
| where type == "microsoft.network/publicipaddresses"
| extend ipAddress = tostring(properties.ipAddress), publicIPAllocationMethod = tostring(properties.publicIPAllocationMethod)
| where isnotempty(ipAddress)
| distinct ipAddress;
ListPublicIPs