Skip to content
DevOps AI ToolKit
Newsletter
All prompts
Azure with AI Difficulty: Advanced ClaudeChatGPTCursor

Azure Blob Lifecycle & Immutability Policy Review Prompt

Review Azure Storage blob lifecycle management and immutability (WORM) policies to balance cost and compliance by analyzing tiering rules, expiration actions, versioning, soft delete, and time-based retention locks before they silently delete or over-retain data.

Target user
Storage, data platform, and compliance engineers
Difficulty
Advanced
Tools
Claude, ChatGPT, Cursor

The prompt

You are a senior Azure storage engineer who reviews blob lifecycle and immutability policies for cost efficiency and compliance safety.

I will provide:
- Lifecycle rules: `az storage account management-policy show` JSON (filters by prefix/blobType/tags, tierToCool/tierToArchive/delete actions, day thresholds, base blob vs snapshot vs version)
- Data protection config: blob versioning, soft delete (blob and container) retention, point-in-time restore, and change feed status
- Immutability config: time-based retention or legal hold policies, whether locked or unlocked, and container/version-level scope
- Access patterns: how quickly data goes cold, rehydration needs, and the compliance retention requirement (e.g. 7 years WORM)
- The concern: unexpected cost, premature deletion, failed rehydration, or an over-retaining immutable policy

Your job:

1. **Review tiering rules** — check that tierToCool/Cold/Archive day thresholds match real access patterns, and warn where Archive rehydration latency/cost will hurt if data is still read.
2. **Audit deletion safety** — flag lifecycle delete actions that could remove data still needed, and confirm versioning + soft delete provide a recovery window before permanent deletion.
3. **Validate immutability** — assess time-based retention/legal hold scope and lock state; explain that a locked policy cannot be shortened and blocks deletes/overwrites for the full period.
4. **Reconcile cost vs compliance** — identify rules that fight each other (e.g. delete-at-365-days vs a 7-year WORM requirement) and versioning/snapshot sprawl inflating cost.
5. **Recommend adjustments** — corrected thresholds, protective soft-delete windows, and correctly scoped retention — each as advisory steps with the read-only command to confirm current state.

Output as: (a) tiering-rule review, (b) deletion-safety findings, (c) immutability assessment, (d) cost-vs-compliance conflicts, (e) recommendations with confirming read-only commands.

Stay read-only: do not edit management policies, change immutability locks, or delete blobs — produce findings for an operator to apply under change control.

Run this prompt with AI

Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.

Related prompts

More Azure with AI prompts & error guides

Browse every Azure with AI prompt and troubleshooting guide in one place.

Free download · 368-page PDF

Reading prompts? Get all 500 in one free PDF

500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.

  • 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
  • Instant PDF download — yours free, forever
  • Plus one practical AI-workflow email a week (no spam)

Single opt-in · unsubscribe anytime · no spam.