gpt4 book ai didi

javascript - TypeScript 中的 Azure Blob 触发器在部署中不会触发

转载 作者:行者123 更新时间:2023-12-03 02:25:32 25 4
gpt4 key购买 nike

我已经测试了我的 Azure 函数在本地运行,它工作正常,但部署后,每当我在 video-temp 容器中上传文件时,它都不会触发。

{
"bindings": [
{
"name": "myBlob",
"type": "blobTrigger",
"direction": "in",
"path": "video-temp/{name}",
"connection": "NewContainer"
}
],
"scriptFile": "../dist/VideoConversionTrigger/index.js"
}

这是我的local.settings.json

{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "node",
"NewContainer": "DefaultEndpointsProtocol=https; ..."
}
}

最佳答案

local.settings.json 仅在本地使用。部署后您需要在此处添加设置:

enter image description here

对于错误,Microsoft.WindowsAzure.Storage: Requested value 'GET,HEAD,DELETE,MERGE,OPTIONS,POST,PUT,PATCH' was not found.,您可以分解值到单独的 CORS 条目中。

关于javascript - TypeScript 中的 Azure Blob 触发器在部署中不会触发,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67175000/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com