2

I set up a simple scenario in Azure using a Storage Account, a Function App, and an Event Grid System Trigger. Blob uploads into the Storage Account should cause the Event Grid System Trigger to send a BlobCreated event to trigger the Azure Function.

I can see that the Event Grid System Topic appears to be configured for the correct storage account according to the overview page in the Azure Portal:

Azure Portal.

I have a subscription created for the Event Grid System Topic, and it subscribes to all of the events the storage account can generate as I can see in the Azure Portal. This shows all 6 event types enabled, so I'm not filtering them out.

Details pane.

Despite this, when I upload blobs into a container I created in my storage account and watch for the events to show up in the metrics on my Event Grid System Topic, or see my Azure Function trigger, no events appear to ever be generated. Some interesting points about my storage account which may be worth mentioning are:

  • I am using a premium storage account
  • I am using a private vnet for my storage account

I suspected the network, but to rule that out I changed my storage account back to public and tried again but it didn't change the behavior. From everything I can tell from documentation, this should be working. Any ideas why it isn't?

Lewis
  • 4,285
  • 1
  • 23
  • 36
  • Is your storage account V2 (general purpose v2)? – Sean Feldman Jul 13 '20 at 03:27
  • Yes, the storage account type is StorageV2 (general purpose v2). – GeneSavvy Chris Jul 13 '20 at 15:50
  • I tested this again with a non premium account and it is finally working. Unless someone can offer evidence otherwise, this suggests to me Event Grid just doesn't work for premium storage at the time of writing this. – GeneSavvy Chris Jul 13 '20 at 22:19
  • The documentation doesn't call out Premium as not supported. I'll try to get someone from the service team to provide clarification. – Sean Feldman Jul 13 '20 at 22:46
  • Thanks @SeanFeldman, for reference this is the documentation I was following and made slight modifications to for my original setup: https://learn.microsoft.com/en-us/azure/event-grid/resize-images-on-storage-blob-upload-event?tabs=dotnet – GeneSavvy Chris Jul 13 '20 at 23:15

1 Answers1

1

I work at MS in the SDK team, and I reached to an EventGrid team member directly for opinion:

I looked into our service logs for last two weeks and I could not find any events for this topic/event-subscription.

Can you please provide specific time and region when you are uploading/deleting/editing the blobs to help investigating? Also, is this specific to this storage account? Was this working before or this scenario working for other storage accounts? Can you please open a support ticket to handle this properly.

Thanks! In any doubt on the process, feel free to reply to me, we'll monitor this thread

[Edit: more info from Storage team]

We communicated with Azure Storage team and they confirmed that the behavior as described is by design and expected. Here are some additional details from Azure Storage Team:

The issue is that the customer is using a Premium_LRS StorageV2 account. These accounts only support premium page blobs and premium disks.

If the customer wants to store block blobs in the premium tier, they need to create a BlockBlobStorage account.

See subscript 5 in this table: https://learn.microsoft.com/en-us/azure/storage/common/storage-account-overview

Laurent Mazuel
  • 3,422
  • 13
  • 27
  • Thank you, I am setting up a brand new scenario in Azure and followed the [documentation here](https://learn.microsoft.com/en-us/azure/event-grid/resize-images-on-storage-blob-upload-event?tabs=dotnet) for a basic template of an application that used the same components I wanted. First I followed the instructions but changed my SKU to PREMIUM_LRS instead of STANDARD_LRS and I observed that uploading files into the storage account never caused any events to fire. I followed it again, using the STANDARD_LRS SKU and it works. I will open a ticket for account specific follow up. – GeneSavvy Chris Jul 14 '20 at 05:10
  • Hello, I added a new edit from a message I received this night from the Storage team. Thanks! – Laurent Mazuel Jul 15 '20 at 15:46
  • Hello @laurent-mazuel, l followed the Azure CLI script of a Image Resizer Function App and completed all prerequisite but unable capture Blob Create event via event grid and the sample app is not working ( this page: https://learn.microsoft.com/en-us/azure/event-grid/resize-images-on-storage-blob-upload-event?toc=%2Fazure%2Fazure-functions%2Ftoc.json&tabs=dotnet) – Andy Jan 26 '21 at 05:45
  • Can you use the feedback button on the tutorial? It will address the EventGrid team that the tutorial needs revision. Thanks! – Laurent Mazuel Jan 29 '21 at 05:53