Commands icon
If icon
SlackIncomingWebhook icon
Schedule icon

Microsoft Azure Storage Account Blob Lifecycle Management Policy Drift Sentinel

Audits Azure Storage Accounts for missing lifecycle management policies to prevent unoptimized storage cost accumulation.

Categories
BusinessCloud

How it works

This workflow audits Azure Blob Storage accounts by executing az storage account management-policy show inside an Azure CLI container. Data stored in Azure Blob Storage accumulates substantial operational costs when aged objects remain indefinitely on the Hot access tier. Azure Lifecycle Management rules automate transitions from Hot to Cool (30 days), Cold (90 days), and Archive (180+ days), and delete obsolete scratch snapshots. When an account lacks lifecycle rules, the workflow alerts the FinOps team to prevent cloud spend leakage.

What you get

  • Automated detection of unmanaged Azure Blob storage accounts.
  • Prevents cloud cost drift from neglected data tiering.
  • Actionable recommendations to apply automated transition and purge rules.

Who it's for

  • Cloud FinOps Practitioners and Infrastructure Cost Optimization Leads.
  • Azure Administrators and Cloud Architects enforcing storage governance.

Why orchestrate this with Kestra

  • Continuous Cost Governance: Automatically audits multi-cloud object stores on a recurring schedule.
  • Non-Invasive Inspection: Read-only queries check governance policies without mutating existing blob states.
  • Direct Team Alerts: Escalates drift directly to financial operations Slack channels.

Prerequisites

  • Azure Service Principal with Reader and Storage Account Contributor roles.
  • Secrets AZURE_CLIENT_ID, AZURE_CLIENT_SECRET, AZURE_TENANT_ID, and SLACK_WEBHOOK configured in Kestra.

Quick start

  1. Import the blueprint.
  2. Input the Azure subscription ID, resource group, and storage account name.
  3. Run the workflow to inspect lifecycle management rules.

How to extend

  • Add an automated remediation step to apply a default organizational lifecycle rule template using az storage account management-policy create.
  • Extend to audit all storage accounts across an entire subscription dynamically.

Links

See How

New to Kestra?

Use blueprints to kickstart your first workflows.