【发布时间】:2019-03-15 12:54:44
【问题描述】:
我正在尝试设置 timerTrigger azure 函数
我的function.json:
{
"disabled": false,
"bindings": [
{
"type": "timerTrigger",
"direction": "in",
"name": "sampleCronTrigger",
"schedule": "*/5 * * * * *",
}
],
"entryPoint": "sampleCron",
"scriptFile": "index.js"
}
在此我需要设置一个环境变量,但我无法这样做。我尝试查找一些文档,但找不到不需要在 Azure 控制台上进行某些设置的任何内容?
我可以定义环境变量吗?或者,如果我可以通过任何方式将输入传递给函数,那也可以。
【问题讨论】:
-
它在 AppSettings.json 中,而不是 function.json 中
-
在javascript env中,根据docs.microsoft.com/en-us/azure/azure-functions/…是
function.json
标签: node.js azure azure-functions