CIS Microsoft Azure Foundations Benchmark v1.4.0/Logging and Monitoring/70 of 115
5.1.1Ensure that a 'Diagnostics Setting' exists
Control family: Logging and Monitoring
Control description
Enable Diagnostic settings for exporting activity logs.
Diagnostic setting are available for each individual resources within a subscription. Settings should be configured for all appropriate resources for your environment.
How to implement
ResponsibilityCustomerYou configure and operate this in your own cloud accounts.
The activity log records every change made to resources in a subscription, but keeps it for only 90 days. A diagnostic setting sends it to a Log Analytics workspace or storage account, where it can be kept, searched and alerted on.
Before you start
The same on every cloud, before the steps in the tabs.
- Remove any legacy log profile for the activity log, since it has been replaced by diagnostic settings.
Evidence
- The record that no legacy log profile remains
On Azure the tasks export the activity log of each subscription with a diagnostic setting in Azure Monitor, then check it arrives.
Task 1Export the activity log
- Sign in to the Azure portal at portal.azure.com, select Monitor > Activity log, then Export Activity Logs.
- Choose the subscription and select Add diagnostic setting.
- Name the setting and select the log categories (see 5.1.2).
- Choose Send to Log Analytics workspace and the security workspace, and also Archive to a storage account if you keep long-term copies there.
- Select Save.
- Check it: the subscription's diagnostic settings list shows the new setting.
Task 2Check the activity log arrives
- Open the Log Analytics workspace and select Logs.
- Find the AzureActivity table and run a query on it for the last hour.
- Make a harmless change, such as adding a tag, and confirm it appears.
Evidence
- The activity log diagnostic setting of each subscription and its destinations
- Recent entries in the AzureActivity table
Not applicable. This benchmark covers Azure only.
Not applicable. This benchmark covers Azure only.
Console steps as of 5 November 2026. Not every step has been confirmed in a live console yet, and menus and labels can move between releases, so look for the nearest match if one has changed.