将文件上传到 Azure Blob 存储时没有触发事件网格事件——为什么?

No Event Grid events triggering when uploading files to Azure Blob Storage -- why?

我使用存储帐户、函数应用程序和事件网格系统触发器在 Azure 中设置了一个简单的场景。将 Blob 上传到存储帐户应导致事件网格系统触发器发送 BlobCreated 事件以触发 Azure 函数。

我可以看到,根据 Azure 门户中的概览页面,事件网格系统主题似乎是为正确的存储帐户配置的:

我为事件网格系统主题创建了一个订阅,它订阅了存储帐户可以生成的所有事件,正如我在 Azure 门户中看到的那样。这显示了所有 6 种事件类型已启用,所以我没有过滤掉它们。

尽管如此,当我将 blob 上传到我在存储帐户中创建的容器中并观察事件是否显示在我的事件网格系统主题的指标中,或者查看我的 Azure 函数触发器时,似乎没有事件出现永远被生成。关于我的存储帐户的一些有趣的点可能值得一提:

我怀疑是网络问题,但为了排除这种可能性,我将我的存储帐户改回 public 并再次尝试,但它并没有改变行为。从我从文档中可以看出的一切来看,这应该是有效的。知道为什么不是吗?

我在 MS 的 SDK 团队工作,我直接联系了一位 EventGrid 团队成员征求意见:

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.

谢谢!对流程有任何疑问,欢迎随时回复我,我们会关注此帖

[编辑:来自存储团队的更多信息]

我们与 Azure 存储团队进行了沟通,他们确认所描述的行为是设计使然和预期的。以下是 Azure 存储团队的一些其他详细信息:

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://docs.microsoft.com/en-us/azure/storage/common/storage-account-overview