last sync: 2025-May-09 17:30:01 UTC

Log Analytics Workspace require retention in days

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy 25b5146e-af5c-4229-9bad-2f009ef7a453 (1.0.0) to Azure
Display name Log Analytics Workspace require retention in days
Id 25b5146e-af5c-4229-9bad-2f009ef7a453
Version 1.0.0
Details on versioning
Category Monitoring
Microsoft Learn
Description Azure Log Analytics should have retention set to the specified number of days
Mode Indexed
Type Custom Community
Effect Default
Audit
Allowed
Deny, Audit, Disabled
RBAC role(s) none
Rule aliases IF (1)
Alias Namespace ResourceType Path PathIsDefault DefaultPath Modifiable
microsoft.operationalinsights/workspaces/retentionInDays Microsoft.OperationalInsights workspaces properties.retentionInDays True True
Rule resource types IF (1)
Microsoft.OperationalInsights/workspaces
JSON
EPAC
Deploy policy 25b5146e-af5c-4229-9bad-2f009ef7a453 (1.0.0) to Azure