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

Rust in time! Announcing the Azure SDK for Rust Beta. 🎉

Announcing the first beta release of the Azure SDK for Rust. This release includes libraries for Identity, Key Vault secrets & keys, Event...

26 minutes ago

Go passwordless when calling Azure OpenAI from Azure SQL using Managed Identities

Security is a significant topic today, and the ability to access a service requiring authentication without using an API key, password, or sec...

23 hours ago

Spring Cloud Azure updates and troubleshooting tips for Java on AKS

This post shows the latest Spring Cloud Azure updates. The post Spring Cloud Azure updates and troubleshooting tips for Java on AKS appeared f...

2 days ago

Episode 395 – Getting Started with VDI in Azure with Azure Virtual Desktop

Welcome to Episode 395 of the Microsoft Cloud IT Pro Podcast. In this episode, we dive into Azure Virtual Desktop (AVD) and how it enables org...

6 days ago

Azure AI Agents are in the Public Preview

AI agents are becoming a key enabler for businesses looking to streamline processes, automate repetitive tasks, and empower their employees to...

6 days ago

Simplify your .NET data transfers with the new Azure Storage Data Movement library

This post announces the new and improved Azure Storage Data Movement library for .NET. The post Simplify your .NET data transfers with the new...

7 days ago

External REST Endpoint Invocation in Azure SQL Managed Instance is now in Public Preview

External REST Endpoint Invocation is available in Azure SQL Managed Instance with the Always-up-to-date update policy configured. Call Azure S...

7 days ago

Announcing the end of support for Node.js 18.x in the Azure SDK for JavaScript

After July 10, 2025, the Azure SDK for JavaScript will no longer support Node.js 18.x. Upgrade to an Active Node.js Long Term Support (LTS) ve...

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