Control: 7.1.1.9 Ensure that a Microsoft Entra diagnostic setting exists to send Microsoft Entra activity logs to an appropriate destination
Description
Ensure that a Microsoft Entra diagnostic setting is configured to send Microsoft Entra activity logs to a suitable destination, such as a Log Analytics workspace, storage account, or event hub. This enables centralized monitoring and analysis of Microsoft Entra activity logs.
Microsoft Entra activity logs enables you to assess many aspects of your Microsoft Entra tenant. Configuring diagnostic settings in Microsoft Entra ensures these logs are collected and sent to an appropriate destination for monitoring, analysis, and retention.
Remediation
From Azure Portal
- Go to
Microsoft Entra ID
. - Under
Monitoring
, clickDiagnostic settings
. - Click
+ Add diagnostic setting
. - Provide a
Diagnostic setting name
. - Under
Logs > Categories
, check the box next to each of the following logs:
AuditLogs
SignInLogs
NonInteractiveUserSignInLogs
ServicePrincipalSignInLogs
ManagedIdentitySignInLogs
ProvisioningLogs
ADFSSignInLogs
RiskyUsers
UserRiskEvents
NetworkAccessTrafficLogs
RiskyServicePrincipals
ServicePrincipalRiskEvents
EnrichedOffice365AuditLogs
MicrosoftGraphActivityLogs
RemoteNetworkHealthLogs
NetworkAccessAlerts
- Configure an appropriate destination for the logs.
- Click
Save
.
Default Value
By default, Microsoft Entra diagnostic settings do not exist.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v400_7_1_1_9
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v400_7_1_1_9 --share
SQL
This control uses a named query:
select id as resource, 'info' as status, 'Manual verification required.' as reason, display_name as subscriptionfrom azure_subscription;