Is it possible to send email alerts on Azure container health probes failing?

RSa 0 Reputation points
2024-09-09T15:19:28.6233333+00:00

We have liveness, startup and readiness health probes setup on some Azure Container Apps.

We also can see the log analytics tables however do not seen any health probe data in them.

Is it possible in bicep to create alerts that go to a specific email address should any of these health probes for the container app fail?

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
444 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vinodh247 23,346 Reputation points MVP
    2024-09-09T16:45:54.5966667+00:00

    Hi ,

    Thanks for reaching out to Microsoft Q&A.

    • Even if you're not seeing health probe data in Log Analytics tables, make sure that diagnostic logging is enabled for your Azure Container Apps and sending logs to Log Analytics. You can do this by configuring diagnostic settings.
    • You’ll want to monitor any log data related to container health probes. Once diagnostic settings are configured, you can query these logs in Log Analytics for events like failed health probes.
    • You might need to check AppLogs or ContainerAppConsoleLogs to get health probe failures.
    • You can create a log alert rule in Azure Monitor based on your Log Analytics query for health probe failures.

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.