fix: use log workspace retention policy #97
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
💰 Infracost opened this pull request as part of the following campaign:
Policy: Azure Monitor - consider using a retention policy to reduce storage costs
Use a retention policy to avoid retaining analytics data indefinitely and accumulating storage costs. For example, if an application generates 5GB of logs daily, in a year without retention, you'd store 1.8TB of logs. In the Azure East US region, data retention costs $0.10 per GB per month after the first month. This means you'll incur an additional yearly cost of around $1,000 compared to a service that has a simple 30 day retention policy.Risk: Medium
Improper retention could prematurely delete logs still needed for compliance or debugging.Deployment details: no downtime required, see Azure docs for details
Retention policies apply in‑place to Log Analytics workspaces without service disruption.Next steps:
✅ Deploy this change before the campaign deadline: June 31
💬 Doesn't apply? Close the PR with a comment
🛠️ Needs changes? Check out the branch to rebase or adjust