last sync: 2025-Jun-20 17:23:43 UTC

Deploy Diagnostic Settings for Activity Log to Log Analytics Workspace

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 24480d31-fc9b-4a99-be70-01b3765c29de (1.0.0) to Azure
Display name Deploy Diagnostic Settings for Activity Log to Log Analytics Workspace
Id 24480d31-fc9b-4a99-be70-01b3765c29de
Version 1.0.0
Details on versioning
Category Monitoring
Microsoft Learn
Description Deploys the diagnostic settings for Activity Log to stream to a regional Log Analytics workspace when any Subscription which is missing this diagnostic settings is created or updated.
Mode All
Type Custom Community
Effect Default
DeployIfNotExists
Allowed
DeployIfNotExists, AuditIfNotExists, Disabled
RBAC role(s)
Role Name Role Id
Owner 8e3af657-a8ff-443c-a75c-2fe8c4bcb635
Rule aliases THEN-ExistenceCondition (1)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
Microsoft.Insights/diagnosticSettings/workspaceId microsoft.insights diagnosticSettings properties.workspaceId True False
Rule resource types IF (1)
Microsoft.Resources/subscriptions
THEN-Deployment (1)
Microsoft.Insights/diagnosticSettings
JSON
EPAC
Deploy policy 24480d31-fc9b-4a99-be70-01b3765c29de (1.0.0) to Azure