I have a timerTrigger function that works fine in Azure but when running it locally it returns "Error calling the functions host: Unauthorized". What is wrong ? How can I run a time trigger locally ?
function.json
{
"bindings": [
{
"name": "myTimer",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 30 8 * * 1"
}
],
"disabled": false
}
Executing it within Visual Studio Code (or command line)
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>
We investigated, and it is a bug in the Functions CLI. The issue is understood, and there is a pull request for it.
The fix will be in the next build.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With