Azure Monitor activity log alert exists for the Delete Public IP Address operation (Microsoft.Network/publicIPAddresses/delete), capturing subscription-wide events when Public IP resources are removed.
Risk
Unmonitored deletion of Public IPs can abruptly sever ingress/egress, break DNS and allowlists, and take services offline (availability). Attackers or misconfigurations can delete IPs to cause DoS or evade controls, and delayed visibility hinders incident response and forensics.
prowler azure --checks monitor_alert_delete_public_ip_address_rule
Recommendation
Implement an activity log alert for Microsoft.Network/publicIPAddresses/delete and route it to an action group for rapid response.
- Apply least privilege and change approval for IP deletions
- Use resource locks on critical IPs
- Centralize alerts in your SIEM and define runbooks for containment
Remediation
az monitor activity-log alert create --name <activity_log_rule_name> --resource-group <resource_group_name> --location global --scopes /subscriptions/<subscription_id> --condition category=Administrative and operationName=Microsoft.Network/publicIPAddresses/delete
- In the Azure portal, go to Monitor > Alerts > + Create > Alert rule
- Scope: Select your subscription and click Apply
- Condition: Choose Activity log, then set Category = Administrative and Operation name = Microsoft.Network/publicIPAddresses/delete; click Apply
- Actions: Skip (no action group required to pass)
- Details: Enter an alert name, set Region to Global, ensure Enable alert rule upon creation is checked
- Review + create > Create
Source Code
Resource Type
microsoft.insights/activitylogalerts
References
- https://www.trendmicro.com/cloudoneconformity/knowledge-base/azure/ActivityLog/delete-public-ip-alert.html#trendmicro
- https://azure.microsoft.com/en-us/updates/classic-alerting-monitoring-retirement
- https://learn.microsoft.com/en-in/azure/azure-monitor/alerts/alerts-create-activity-log-alert-rule?tabs=activity-log