Trigger EventGrid Subscription On Blob Metadata Change

James Patterson 26 Reputation points
2020-06-17T14:33:31.5+00:00

I currently have some Azure Functions which use BlobTrigger to initiate them. When I upload a blob it fires, when I change the metadata it fires. This is what I am trying to replicate using EventGrid Subscriptions which write to a Queue. I've made this change so that a get a more realtime trigger rather than waiting what could be minutes for the BlobTrigger to be called.

I am getting events written into the queue and my new AzureFunction running when an upload or replace occurs. This is perfect. I cannot find any way of triggering an event when just the metadata is updated. The metadata is being used as a way of deciding if further work should be undertaken on the blob. Eg: creating a preview or updating Azure Search.

I tried with no filters at all and still nothing was written to the queue when metadata changed. I can only assume this is not possible currently.

Can anyone advise if I have missed something or if this is a missing use case?

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,608 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
308 questions
{count} vote

1 additional answer

Sort by: Most helpful
  1. Roman Kiss 2,236 Reputation points
    2020-06-17T16:11:44.05+00:00

    Hi James,

    This feature is not currently supported. Have a look at all event types triggered by blob storage here.

    Thanks

    Roman

    0 comments No comments