Closed
Description
Hi,
I tried running the code examples located in the docs using the beta version of Azure Functions but I am getting a "Status: 404 Not found" error when trying to run it. I have tried restarting the function server and re-writing/stripping the code, but without luck. Any ideas as to why this is happening?
main.py
import azure.functions
def main(req: azure.functions.HttpRequest) -> str:
user = req.params.get('user', 'User')
return f'Hello, {user}!
function.json
{
"scriptFile": "main.py",
"disabled": false,
"bindings": [
{
"authLevel": "anonymous",
"type": "httpTrigger",
"direction": "in",
"name": "req"
},
{
"type": "http",
"direction": "out",
"name": "$return"
}
]
}
Metadata
Metadata
Assignees
Labels
No labels