【发布时间】:2020-03-23 19:29:29
【问题描述】:
我能够创建 http 触发函数并执行它们没有问题,但是当我创建一个计时器函数时,我收到以下错误:
The listener for function 'Functions.CheckForWinnersOnTimer' was unable to start. Microsoft.WindowsAzure.Storage: Settings must be of the form "name=value".
这是在我创建函数时没有更改模板代码。
module.exports = async function (context, myTimer) {
var timeStamp = new Date().toISOString();
if (myTimer.IsPastDue)
{
context.log('JavaScript is running late!');
}
context.log('JavaScript timer trigger function ran!', timeStamp);
};
这是为什么呢?感谢您的帮助!
【问题讨论】:
-
问题与 Microsoft.WindowsAzure.Storage 包有关,与时间触发器无关。如果没有看到您的设置,我们将无法提供帮助
-
你在local.settings.json中设置
AzureWebJobsStorage了吗? -
代码没有问题。 local.settings.json的设置应该有问题。
标签: node.js azure azure-functions