Azure Function - 为所有容器调整存储在 blob 存储中的图像大小,而不是特定容器

Azure Function - Resize image stored in blob storage for all containers not a specific one

我按照这个 调整存储在我的 blob 存储中的图像的大小。

我的问题是我的网站为它处理的每张账单都创建了一个新容器,并将图片添加到该特定 "bill" 容器。

有没有办法为存储中的每个容器触发我的 azure 函数,而不是指定一个具体的容器?

目前不支持,您可以在Add ability to create blob triggers on a container names that match a pattern

中跟踪此请求的状态

此外,我建议查看 Blob 存储事件网格(现在处于预览状态),查看更多详细信息here

正如 Roman 提到的,事件网格涵盖了这种场景,我们最近发布了一个教程,介绍如何根据使用队列的现有示例来完成这种场景。可以在此处找到 https://docs.microsoft.com/en-us/azure/storage/blobs/storage-upload-process-images