Azure Blob触发功能仅在某些Blob上触发

时间:2019-09-18 11:49:24

标签: azure azure-functions azure-storage-blobs

我有两个要触发的Blob触发器。一种有效,一种无效!

我使用Azure存储资源管理器确保将blob上传到每个blob,scanFiles永远不会触发,scanExports似乎总是触发。

问题:什么会导致某些Blob无法触发Azure功能?

    [FunctionName("scanFiles")]
    public static async Task FilesScan([BlobTrigger("files/{newBlobName}", Connection = "BlobConnectionstring")]CloudBlockBlob newBlob, string newBlobName, ILogger log, ExecutionContext context)
    {
        await VirusScan(newBlob, newBlobName, log, context);
    }


    [FunctionName("scanExports")]
    public static async Task ExportsScan([BlobTrigger("exports/{newBlobName}", Connection = "BlobConnectionstring")]CloudBlockBlob newBlob, string newBlobName, ILogger log, ExecutionContext context)
    {
        await VirusScan(newBlob, newBlobName, log, context);
    }

1 个答案:

答案 0 :(得分:0)

我发现问题是因为其中一个Blob被认为是High scale,这引发了此错误,并且还使得宿主进程在本地运行时会自行终止(请参阅this issue