dolevshor / azure-orphan-resources

Centralize orphan resources in Azure environments
MIT License
533 stars 141 forks source link

Exclude Public IPs associated with NAT Gateway #7

Closed WouterSlob closed 1 year ago

WouterSlob commented 2 years ago

Public IPs associated to NAT Gateways are currently considered to be orphans.

These can be excluded by adding an extra filter:

Resources | where type == "microsoft.network/publicipaddresses" | where properties.ipConfiguration == "" and properties.natGateway == "" | extend Details = pack_all() | project Resource=id, resourceGroup, location, subscriptionId, sku.name, tags, Details

dolevshor commented 1 year ago

Thanks for your feedback.

After checking, I added the additional filter to the Workbook queries.