Description:
Azure resources generate control-plane logs that record create, update, delete, policy changes, RBAC actions, and configuration updates. Diagnostic Settings must be configured to capture all supported control/management-plane categories and export them to Log Analytics, Storage Account, or Event Hub.
Rationale:
Missing diagnostic logs reduces visibility into administrative actions and configuration changes, impacting incident response, forensic investigations, and compliance. Exporting Activity Logs ensures long-term visibility and supports monitoring, auditing, and compliance requirements
Impact:
Enables long-term retention of Activity Logs
Improves detection and investigation of administrative and control-plane actions
Supports SIEMs like Microsoft Sentinel, Splunk, and QRadar
Required for CIS, NIST, SOC2, PCI, and ISO compliance
Default Value:
Control-plane logging is disabled by default unless manually configured.
Pre-requisites:
Log Analytics Workspace, Event Hub, or Storage Account must exist
Appropriate permissions, Microsoft.Insights/diagnosticSettings/*, Subscription-level permissions (e.g., Owner, Contributor, Monitoring Contributor)
Test Plan:
Sign in to the Azure Portal at https://portal.azure.com
Open Subscriptions
Select the target subscription
From the left menu, select Activity log
Click Export Activity Logs
Open Diagnostic settings
Verify that at least one diagnostic setting exists
Confirm Activity Logs are being exported to an approved destination
Record the diagnostic setting name and destination as evidence
Implementation Steps:
Sign in to the Azure Portal at https://portal.azure.com
Open Subscriptions
Select the target subscription
From the left menu, select Activity log
Click Export Activity Logs
Click Add diagnostic setting
Enter a name for the diagnostic setting
Select Administrative, Security, ServiceHealth, Alert, and Policy logs
Choose an export destination (Log Analytics workspace, Storage account, or Event Hub)
Save the diagnostic setting
Backout Plan:
Sign in to the Azure Portal at https://portal.azure.com
Open Subscriptions
Select the target subscription
Open Activity log
Click Export Activity Logs
Open Diagnostic settings
Select the most recent diagnostic setting
Click Delete
Confirm the deletion
Reference:


