Check provider logo

Subscription has an Activity Log diagnostic setting

monitor_diagnostic_settings_exists

Severityhigh
Servicemonitor
by Prowler

Azure Monitor Diagnostic Settings are configured to export the Activity Log to an external destination (Log Analytics, Storage, Event Hub, or partner).

Risk

Without exporting the Activity Log, control-plane events lack centralization and retention.

Undetected RBAC changes, policy updates, and resource deletions reduce detectability, hinder forensics, and weaken incident response and audit evidence.

Run this check with Prowler CLI

prowler azure --checks monitor_diagnostic_settings_exists

Recommendation

Enable subscription Diagnostic Settings to send the Activity Log to a trusted destination.

Use immutable storage or a SIEM, enforce coverage with Azure Policy, apply least privilege to log access, include essential categories, and set retention aligned to regulatory needs.

Remediation

CLI

az monitor diagnostic-settings subscription create --subscription <subscription id> --name <example_resource_name> --workspace <log analytics workspace ID> --logs '[{"category":"Administrative","enabled":true}]'

Native IaC
Terraform
Other
  1. In the Azure portal, go to Subscriptions and select your subscription
  2. Open Monitoring > Activity log, then click Diagnostic settings
  3. Click + Add diagnostic setting and enter a name
  4. Under Destination details, select Send to Log Analytics workspace and choose your workspace
  5. Under Categories, select Administrative
  6. Click Save

Source Code

Resource Type

microsoft.resources/subscriptions

References