Hello @Rodrigo-5826
If your end goal is to be notified whenever HTTP 500 errors occur in your App Service, there are multiple ways to set that up:
- Simplest, and the recommended way, would be to use the built-in Alerting feature within Application Insights: Create, view, and manage log alerts using Azure Monitor
- You can use Logic Apps with a recurrence trigger to run an Application Insights query at a timed interval and orchestrate a workflow that can send you alerts.
Since the App Insights' built-in Alerting supports invoking webhooks, you can also use both of the above together with your Logic Apps running off of Http trigger as well. If you have more specific questions regarding implementations, just let me know and we'd be happy to provide examples.