An Azure service that provides an event-driven serverless compute platform.
Hi @Mark Green ,
Thanks for reaching out to Microsoft Q&A.
Update:
We have completed our investigation and identified the root cause.
The deployment and package mounting completed successfully. The issue occurs during Python v2 function indexing because the HTTP trigger parameter name in the function definition does not match the binding name defined by the decorator.
The affected function uses _ as the parameter, while the @app.route decorator defaults to req. This causes the Python worker to reject the function with:
FunctionLoadError: ... parameters ... {'_'}
As Python v2 indexing is all-or-nothing, this causes all functions to be discarded, resulting in “No job functions found” and HTTP 404 responses.
Recommended fix: Rename the parameter to req:
R
@app.route(route="health", auth_level=func.AuthLevel.ANONYMOUS)
def health(req: func.HttpRequest) -> func.HttpResponse:
return func.HttpResponse("ok")
Alternatively, explicitly set trigger_arg_name="_" in the decorator.
Please also review the remaining functions for similar parameter/binding mismatches before redeploying. Hope this helps!
If the resolution was helpful, kindly take a moment to click on and click on Yes for was this answer helpful. And, if you have any further query do let us know.