Loading...

Subscribe to Azure Storage Blob Lifecycle Policy Events

Subscribe to Azure Storage Blob Lifecycle Policy Events

The LifecyclePolicyCompleted event is generated when the actions defined by a lifecycle management policy are performed. Refer - Optimize costs by automatically managing the data lifecycle - Azure Blob Storage | Microsoft Learn

 

This article shares steps to subscribe to these events and help you track how much data moved, deleted or archived. 

Step 1: Create Event Grid - System topic, which helps to subscribe to events published by Azure Services. Refer below: 

 

blcmevents1.png

blcmevents2.png

blcmevents3.png

 

Step 2: Go to the Event Grid System Topic created and create a new Event Subscription. 

 

blcmevents4.png

Step 3: Select Event Type Filter as "Lifecycle Policy Completed"

blcmevents6.png

Step 4: Select Endpoint to receive events. For simplicity we are using Storage Queue. 

 blcmevents7.png

blcmevents8.png

Step 5: Assign the System Managed identity in the storage account IAM for the event grid with role of "Storage Queue Data Message Sender", once role is assigned successfully, then go in the Event Subscription of the change the Managed Identity for Delivery to "System Assigned" and save. 

blcmevents12.png

 blcmevents13.png

Step 6: Go to the storage queue to see the events published. 

blcmevents10.png

blcmevents11.png

For Azure Grid pricing refer Pricing – Event Grid | Microsoft Azure

Published on:

Learn more
Azure PaaS Blog articles
Azure PaaS Blog articles

Azure PaaS Blog articles

Share post:

Related posts

Azure DevOps and GitHub: Journeying into the AI Era

AI is changing how software gets planned, built, and reviewed. As teams adopt agentic development, the platform underneath those workflows mat...

2 hours ago

Introducing azure-functions-skills: An AI-Era Workspace for Azure Functions (Preview)

azure-functions-skills gives GitHub Copilot CLI, Claude Code, Codex CLI, and VS Code the skills, MCP configuration, hooks, and instructions ne...

3 hours ago

Announcing the Public Preview of Integrated Embeddings in Azure Cosmos DB: Build AI Apps With Embeddings That Stay in Sync

AI applications built on Azure Cosmos DB depend on embeddings for grounded results. Keeping them in sync with your data is the hard part: it m...

3 hours ago

Introducing OmniVec: An Open-Source Embedding Platform for AI Apps on Azure

Today we are open-sourcing OmniVec, a platform for building and operating the embedding pipelines that keep the vector representation of your ...

3 hours ago

Azure Cosmos DB All Versions and Deletes Change Feed Mode is Now Generally Available

Modern applications don’t just write data and move on. They react to it. A new order triggers an inventory update. A profile change sync...

3 hours ago

Change Partition Keys in Azure Cosmos DB is Now Generally Available

We’re excited to announce the general availability of Change Partition Key in Azure Cosmos DB for NoSQL, now with online copy support. Y...

3 hours ago

Announcing the General Availability of Per Partition Automatic Failover for Azure Cosmos DB NoSQL

Today, we are excited to announce the General Availability of Per Partition Automatic Failover (PPAF) for Azure Cosmos DB NoSQL API. PPAF is a...

3 hours ago

Public Preview: AI-powered Azure Cosmos DB Migration Assistant for RDBMS to NoSQL

Today, we are excited to announce the public preview of the Azure Cosmos DB Migration Assistant for RDBMS to NoSQL, now available in the Azure...

3 hours ago

Azure Cosmos DB MCP Toolkit Is Now Generally Available — Bringing Your Database to AI Agents at Scale

Since we introduced the Azure Cosmos DB MCP Toolkit at Ignite 2025 in preview, the response has been clear: developers want a straightforward ...

3 hours ago

Announcing General availability of the Azure Cosmos DB vNext emulator

The Azure Cosmos DB vNext emulator is generally available today. It ships as a Docker image that runs on Linux, macOS, and Windows, on both x6...

3 hours ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy