An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
Hello RaajaSree Andar Pillai,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you would like to know how you can track Public IP attach/detach events across all Azure resources in last 24 hours.
My best practice advice to you:
- Do not query NIC/LB/other resource-provider writes individually.
- Do not rely on Public IP diagnostics.
- Query
resourcechangesformicrosoft.network/publicipaddressesand evaluate property diffs onproperties.ipConfiguration.idandproperties.natGateway.idfor the last 24 hours.
For cross-resource resources for Public IP attach/detach detection in Azure use the link below to read more and get some steps: https://learn.microsoft.com/en-us/azure/governance/resource-graph/changes/get-resource-changes, https://learn.microsoft.com/en-us/azure/virtual-network/ip-services/public-ip-addresses, https://github.com/Azure/Azure-Network-Security/blob/master/Cross%20Product/NetworkSecurity%20-%20%20Queries/Mapping%20Public%20IPs%20to%20Azure%20Assets/README.md
I hope this is helpful! Do not hesitate to let me know if you have any other questions, steps or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.