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

One Azure, Many Logins: How Users Access Microsoft’s Cloud Safely

Users can access Microsoft Azure through several flexible and secure methods, depending on their role, device, and workload needs. The most co...

1 hour ago

Unlocking New Possibilities: Microsoft Azure Hyperscale AI Computing with H200 GPUs Accelerates Secure AI Innovation in Azure for U.S. Government Secret and Top Secret

As artificial intelligence continues to reshape industries and redefine the boundaries of innovation, Microsoft is proud to announce a leap fo...

13 hours ago

Tata Neu delivers personalized shopping experiences for millions of users with Azure DocumentDB

With Azure DocumentDB, Tata Neu delivers seamless authentication for millions of users, accelerates credit card onboarding across partners, un...

2 days ago

From Backlog to Delivery: Running Scrum in Azure DevOps

This is a practical, end-to-end guide to run Scrum with Azure DevOps — from backlog grooming through sprint delivery and continuous deployment...

9 days ago

Azure SDK Release (November 2025)

Azure SDK releases every month. In this post, you'll find this month's highlights and release notes. The post Azure SDK Release (November 2025...

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