To monitor and get notified on failed Azure Function invocations, I recommend using Application Insights with an alert rule based on exceptions. This method allows you to track function failures effectively and trigger notifications (such as email or Slack) via an Action Group.
Here’s a general approach:
Use Application Insights to track exceptions from your Azure Function.
Create an alert rule that triggers when failure count exceeds a threshold (e.g., 1).
Connect the alert to an Action Group to send notifications via your preferred channel (email, Slack, etc.).
You can refer to this helpful guide for a step-by-step walkthrough: 🔗 Adventures with Azure Functions: Create an Alert from App Insights to Send an Email Notification
Please check and let us know if this aligns your scenario.