Alerts feature is missing for Azure Function App

Balasubramanian KN 40 Reputation points
2023-09-29T06:26:20.6433333+00:00

Hi Team,

I have created a function app with Linux OS under consumption plan. Now I'm trying to create a alert rule for monitoring any HTTP server errors and send a email when the rule matches. But I couldn't find the Alert feature under the monitors as shown in below ref image, how shall i set up a alert for monitoring the same?
User's image

Thanks in Advance

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 29,261 Reputation points
    2023-09-29T09:38:30.6933333+00:00

    Hi @Balasubramanian KN the "Alerts" feature is not available in function app with Linux OS under consumption plan.

    However, you can still monitor your Function App for HTTP server errors using Azure Monitor.
    Azure Monitor can collect metrics and logs from your Function App and provide insights into its performance and health. You can also set up alerts based on specific metrics or log search queries to notify you when issues occur.

    • click on "Metrics" on overview page.
    • In the "Metrics" blade, select "Function App" as the resource type and select the appropriate metric namespace and metric name for HTTP server errors.
    • you see a create an alert rule on top to configure alerts.
      or
    • Under the "Monitoring" section, click on "Logs".
    • In the "Logs" blade, create an alert based on a query you write. for example, the following query to search for HTTP server errors:
    requests
    | where resultCode >= 500
    

    This query searches for requests that have a result code of 500 or higher.

    reference: https://learn.microsoft.com/en-us/azure/azure-functions/monitor-functions?tabs=portal

    let me know incase of further queries, I would be happy to assist you.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.