BlobTrigger blobpath 绑定无法正常工作
BlobTrigger blobpath binding is not working properly
我的 blob 存储中有两个容器,名为 "images" 和 "images2"。我正在尝试触发绑定到 "images2" 容器。我相信这应该可以完成工作:
public static void ResizeImagesTask(
[BlobTrigger("images2/{name}.{ext}")] Stream inputBlob ,
string name,
string ext,
IBinder binder)
令我惊讶的是,存储在 "images" 容器中的 blob 触发的函数也会导致错误。
有什么建议吗?
the function triggered by blobs stored in "images" container as well which leads to an error.
您是否在同一个函数中使用"images"作为容器名称,将容器名称更改为"images2"后出现错误?如果是,则错误可能会导致 blob 触发器缓存。 Azure WebJobs 将 WebJob 运行时数据和历史数据保存在 azure-webjobs-hosts 容器中。我们可以在 Azure 存储资源管理器中查看此容器。
如果您更改了函数的某些属性,建议您清除此容器中函数的相关信息。例如,删除 blobreceipts 和 blobscaninfo 文件夹下与您的函数同名的文件夹。
我的 blob 存储中有两个容器,名为 "images" 和 "images2"。我正在尝试触发绑定到 "images2" 容器。我相信这应该可以完成工作:
public static void ResizeImagesTask(
[BlobTrigger("images2/{name}.{ext}")] Stream inputBlob ,
string name,
string ext,
IBinder binder)
令我惊讶的是,存储在 "images" 容器中的 blob 触发的函数也会导致错误。
有什么建议吗?
the function triggered by blobs stored in "images" container as well which leads to an error.
您是否在同一个函数中使用"images"作为容器名称,将容器名称更改为"images2"后出现错误?如果是,则错误可能会导致 blob 触发器缓存。 Azure WebJobs 将 WebJob 运行时数据和历史数据保存在 azure-webjobs-hosts 容器中。我们可以在 Azure 存储资源管理器中查看此容器。
如果您更改了函数的某些属性,建议您清除此容器中函数的相关信息。例如,删除 blobreceipts 和 blobscaninfo 文件夹下与您的函数同名的文件夹。