Skip to content

Add Configure Log Analytics workspace data retention policy (Monitoring) - #543

Open
claestom wants to merge 1 commit into
Azure:mainfrom
claestom:policy/law-workspace-retention
Open

Add Configure Log Analytics workspace data retention policy (Monitoring)#543
claestom wants to merge 1 commit into
Azure:mainfrom
claestom:policy/law-workspace-retention

Conversation

@claestom

Copy link
Copy Markdown

Add policy: Configure Log Analytics workspace data retention (Monitoring)

Custom DeployIfNotExists policy that sets the workspace-level analytics retention (retentionInDays) on Microsoft.OperationalInsights/workspaces.

  • Parameterized effect (DeployIfNotExists / AuditIfNotExists / Disabled) and retention (default 30 days)
  • Includes the Log Analytics Contributor roleDefinitionId for remediation
  • Part of a Log Analytics data-retention set - source: https://github.com/claestom/law-retention-guardrails

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant