Skip to main content

🛡️ Azure Subscription Activity Log Alert for Delete Diagnostic Setting does not exist🟢

  • Contextual name: 🛡️ Subscription Activity Log Alert for Delete Diagnostic Setting does not exist🟢
  • ID: /ce/ca/azure/subscription/activity-log-alert-for-delete-diagnostic-setting
  • Tags:
  • Policy Type: COMPLIANCE_POLICY
  • Policy Categories: SECURITY

Stats​

not available

Logic​

Description​

Open File

Description​

Create an activity log alert rule that notifies an action group whenever the activity log records the Delete diagnostic setting operation in the Administrative category. Resource diagnostic settings and the subscription's activity log export setting share this operation name.

Rationale​

A diagnostic setting is what sends resource logs and the activity log to a workspace, storage account or event hub. Deleting one silently stops that export, which blinds the detections and retention that depend on it, and disabling cloud logs is a documented defense evasion technique used before acting on the resources those logs covered.

Audit​

This policy marks an Azure Subscription as INCOMPLIANT if no current enabled Activity Log Alert covers Administrative / Microsoft.Insights/diagnosticSettings/delete, has a resolved action group, and covers the subscription root. Category and operation must occur on their matching JSON fields, with no additional Level, Status, Caller, or other filter.

A qualifying alert makes the subscription COMPLIANT. Otherwise, unassessable alert configuration produces UNDETERMINED. Complex or narrower scope strings require manual review and do not prove subscription-wide coverage. Notification recipients and delivery must be verified operationally.

Remediation​

Open File

Remediation​

Create an enabled Activity Log Alert for Microsoft.Insights/diagnosticSettings/delete in the Administrative category across the affected subscription. Set the scope to /subscriptions/{{subscription-id}}.

Review existing alerts for this event before creating another. Select a current action group with enabled notification receivers for the responsible team, and review the expected notification volume and any charges for its notification channels.

Use an unused alert-rule name for the command examples. Before editing an existing rule, record its configuration and retain all action groups that are still required.

From Azure Portal​

  1. Go to Monitor > Alerts and select Create > Alert rule.
  2. On the Scope tab, select the affected subscription itself and select Apply.
  3. On the Condition tab, select See all signals, choose Delete diagnostic setting (Diagnostic Settings), and select Apply.
  4. Leave Event level, Status, and Event initiated by set to All. The condition should match only the Administrative category and the specified operation.

... see more

policy.yaml​

Open File

Linked Framework Sections​

SectionSub SectionsInternal RulesPoliciesFlagsCompliance
💼 CIS Azure v7.0.0 → 💼 6.1.2.15 Ensure that Activity Log Alert Exists for Delete Diagnostic Setting (Automated)1no data
💼 Cloudaware Framework → 💼 Alerting and Notification49no data