我有一个 Azure Function v2,可以在本地运行。部署到 Azure 后,一切似乎都正常(包含二进制文件的 bin 文件夹和包含 function.json 的函数名称文件夹)。
但是,当我检查它们是否运行(查看日志)时,它们不在监视器选项卡上(No data available
),kudu日志流也不在通用函数视图中:
2018-01-25T10:27:47 Welcome, you are now connected to log-streaming service.
2018-01-25T10:28:47 No new trace in the past 1 min(s).
2018-01-25T10:29:47 No new trace in the past 2 min(s).
Info:
- 使用计时器触发 Azure Function v2 调用:
- 耐用功能(但“正常”v2 功能无法正常工作)
- 使用 TFS 将代码部署到 ARM 生成的资源
函数.json:
{
"generatedBy": "Microsoft.NET.Sdk.Functions.Generator-1.0.6",
"configurationSource": "attributes",
"bindings": [
{
"type": "timerTrigger",
"schedule": "0 */1 * * * *",
"useMonitor": true,
"runOnStartup": false,
"name": "timerInfo"
}
],
"disabled": false,
"scriptFile": "../bin/Namespace.dll",
"entryPoint": "Namespace.RetrieveRedisMetrics.RunOrchestrator"
}
I have:
- 删除了 Azure 门户中的函数
- 重命名了该函数
- 删除了该函数的 blob 存储“azure-webjobs-hosts”和持久租赁(忘记确切名称)容器
该行为似乎类似于https://github.com/Azure/Azure-Functions/issues/618 https://github.com/Azure/Azure-Functions/issues/618,但该错误没有解决方案或评论。
我无法私下分享信息应用程序名称(根据https://github.com/Azure/azure-webjobs-sdk-script/wiki/Sharing-Your-Function-App-name-privately https://github.com/Azure/azure-webjobs-sdk-script/wiki/Sharing-Your-Function-App-name-privately),因为...该函数没有记录!
还有其他想法/建议吗?