For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/default_rules/apn-0ib-a6f.md. A documentation index is available at /llms.txt.

Azure diagnostic setting deleted or disabled

Goal

Detect when a diagnostic setting is deleted which can disable centralized logging and metrics on Azure.

Strategy

Monitor Azure logs where @evt.name is "MICROSOFT.INSIGHTS/DIAGNOSTICSETTINGS/DELETE" and @evt.outcome is Success.

Triage and response

  1. Inspect the diagnostic setting resource which is found in @resourceId.
  2. Verify that the user ({{@usr.id}}) to determine if the removal of the resource is legitimate.