Farid Ullah Thanks for posting your question in Microsoft Q&A. I assume you have already validated that topic has subscribed to Microsoft.Storage.BlobDeleted event.
To troubleshoot this issue, I suggest you follow the below steps:
- Enable diagnostic logs for Event Grid (refer Enable diagnostic logs for Event Grid) and validate Microsoft.Storage.BlobDeleted has occurred for the specific blob deletion operation.
- If not, then you would have to validate operation such as
DeleteBlob
for Blob Storage orDeleteFile
for ADLS Gen2 account has occurred so that the event is triggered (enabling diagnostic logs for Storage account Monitoring Azure Blob Storage also will help). - If the events are triggered from Event Grid, we can narrow down the issue to Azure Functions and if you can share the code snippet of python function, it will help in understanding more.
Note: BlobDeleted
events are not generated when blob versions or snapshots are deleted. A BlobDeleted
event is added only when a base (root) blob is deleted.
I hope this helps in troubleshooting the issue and let me know if you have any questions.
If you found the answer to your question helpful, please take a moment to mark it as Yes
for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.