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

Microsoft Dataverse – Monitor batch workloads with Azure Monitor Application Insights

We are announcing the ability to monitor batch workload telemetry in Azure Monitor Application Insights for finance and operations apps in Mic...

16 hours ago

Copilot Studio: Connect An Azure SQL Database As Knowledge

Copilot Studio can connect to an Azure SQL database and use its structured data as ... The post Copilot Studio: Connect An Azure SQL Database ...

1 day ago

Retirement of Global Personal Access Tokens in Azure DevOps

In the new year, we’ll be retiring the Global Personal Access Token (PAT) type in Azure DevOps. Global PATs allow users to authenticate across...

3 days ago

Azure Cosmos DB vNext Emulator: Query and Observability Enhancements

The Azure Cosmos DB Linux-based vNext emulator (preview) is a local version of the Azure Cosmos DB service that runs as a Docker container on ...

4 days ago

Azure Cosmos DB : Becoming a Search-Native Database

For years, “Database” and “Search systems” (think Elastic Search) lived in separate worlds. While both Databases and Search Systems oper...

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