我有一个在Azure中运行良好的timerTrigger函数,但在本地运行它时会返回"错误调用函数host:Unauthorized"。 怎么了 ?如何在本地运行时间触发器?
function.json
{
"bindings": [
{
"name": "myTimer",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 30 8 * * 1"
}
],
"disabled": false
}
在Visual Studio代码(或命令行)中执行
Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.
PS C:\Projects\reporting-function> func run .\MyFunction\
Error calling the functions host: Unauthorized
PS C:\Projects\reporting-function>