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

Deny change of retention days in Log Analytics workspace

Community Policy definition

Source Repository Community-Policy GitHub
JSON Community-Policy GitHub
Deploy policy c7eedeb9-bf27-40fa-91ce-4ccb1ae35edc (1.0.0) to Azure
Display name Deny change of retention days in Log Analytics workspace
Id c7eedeb9-bf27-40fa-91ce-4ccb1ae35edc
Version 1.0.0
Details on versioning
Category Monitoring
Microsoft Learn
Description Ensure the retention days for Log Analytics workspaces do not fall below the set threshold.
Mode All
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 c7eedeb9-bf27-40fa-91ce-4ccb1ae35edc (1.0.0) to Azure