1
votes

Is azure blob object replication creating blob storage events?

The use case is to replicate blobs between azure regions/subscriptions. When the blob arrives at the target storage account, Snowpipe should be notify via event grid and storage queue (as in here).

After setting object replication, event grid and queue, I can see files arriving, but no event seems to be generated. Only if I manually delete a blob or create one, events are pushed to queue. My first guess is that object replication is not creating event, but maybe there is another issue with this setup?

1

1 Answers

0
votes

Yes, of course.

Have a look of this doc:

https://docs.microsoft.com/en-us/azure/event-grid/event-schema-blob-storage?toc=/azure/storage/blobs/toc.json#list-of-events-for-blob-rest-apis

Triggered when a blob is created or replaced. Specifically, this event is triggered when clients use the PutBlob, PutBlockList, or CopyBlob operations that are available in the Blob REST API.

I use copy blob azure cli:

az storage blob copy start --destination-blob 1120.png --destination-container test1 --account-key Oczxxxxxx== --account-name 0730bowmanwindow --source-account-key Oczxxxxxx== --source-account-name 0730bowmanwindow --source-blob 1120.png --source-container test

And the Event grid get the event:

enter image description here

This is the filters on my side:

enter image description here