I developed an azure function and deployed it in my subscription. Initially I had hard time setting up correct connection string and that lead Azure Function to fail functionally. But Azure reported it to be successful because the exception generated by code was handled.
How do you report a failure to azure function status?
The Status should be "failed" instead of passing.
The problem is, operation team would not come to know about failure unless they review each logs!
A function execution is marked as failed if there was an uncaught exception. If there was an exception, but you handled it inside the function, it's still a success for the runtime.
To mark executions as failures, don't swallow exceptions.