Azure Function Trigger Events Test

Azure Functions execute automatically in response to predefined triggers, such as HTTP requests, timer schedules, messages from Azure Storage queues or Service Bus, Event Grid notifications, and database changes. Every trigger invocation generates a trigger event that records details about the function execution, including the event category, Event ID, location, function invocation, and any errors or exceptions encountered. These trigger events provide administrators with valuable insights into the execution lifecycle of Azure Functions and help them verify that functions are being triggered and processed successfully. However, trigger processing can fail due to invalid trigger configurations, permission issues, network connectivity problems, unavailable dependent services, or application errors. For example, if an HTTP request triggers a function but the function encounters an execution error, or if a scheduled timer trigger fails to run, the expected operation may not be completed, resulting in failed requests, delayed processing, or missed scheduled tasks. If such issues go unnoticed, they can lead to service disruptions, data inconsistencies, and degraded application reliability.

To help administrators proactively monitor the health of Azure Function trigger processing, the Azure Function Trigger Events Test monitors trigger-related events and reports the number of debug, information, warning, error, and critical events generated during function execution. In addition, it categorizes trigger events by Event ID, category, location, exception, and function invocation, with detailed diagnosis providing further insights into each event. This enables administrators to identify abnormal trigger activity, detect recurring errors and exceptions, isolate issues to specific functions or locations, analyze the root cause, and take timely corrective action before trigger-related issues impact application availability, reliability, or business operations.

Target of the test : Microsoft Azure Function App

Agent deploying the test : A remote agent

Outputs of the test : One set of results for the target Azure Function App being monitored.

Configurable parameters for the test

Parameters Description

Test Period

How often should the test be executed.

Host

The host for which the test is to be configured.

Subscription Id

This field will be automatically populated if you have chosen to automatically fulfill the pre-requisites for monitoring the Microsoft Azure Subscription. In this component is added manually, provide below details.

Specify the GUID which uniquely identifies the Microsoft Azure Subscription to be monitored in this text box, if you have chosen to manually fulfill the pre-requisites. To know the ID that maps to the target subscription, do the following:

  1. Login to the Microsoft Azure Portal.

  2. When the portal opens, click on the Subscriptions option (as indicated by Figure 1).

    Clicking Subscriptions Option

    Figure 1 : Clicking on the Subscriptions option

  3. Figure 2 that appears next will list all the subscriptions that have been configured for the target Microsoft Entra tenant. Locate the subscription that is being monitored in the list, and check the value displayed for that subscription in the Subscription ID column.

    Determining Subscription ID

    Figure 2 : Determining the Subscription ID

  4. Copy the Subscription ID in Figure 2 to the text box corresponding to the SUBSCRIPTION ID parameter in the test configuration page.

Tenant Id

This field will be automatically populated if you have chosen to automatically fulfill the pre-requisites for monitoring the Microsoft Azure Subscription.

Specify the Directory ID of the Azure Entra ID tenant to which the target subscription belongs in this text box, if you have chosen to manually fulfill the pre-requisites. To know how to determine the Directory ID, refer to Configuring the eG Agent to Monitor a Microsoft Azure Subscription Using Azure ARM REST API.

Client Id, Client Password and Confirm Password

These fields will be automatically populated if you have chosen to automatically fulfill the pre-requisites for monitoring the Microsoft Azure Subscription.

To connect to the target subscription, the eG agent requires an Access token in the form of an Application ID and the client secret value. For this purpose, you should register a new application with the Microsoft Entra tenant. To know how to create such an application and determine its Application ID and client secret, refer to Configuring the eG Agent to Monitor a Microsoft Azure Subscription Using Azure ARM REST API. Specify the Application ID of the created Application in the Client ID text box and the client secret value in the Client Password text box, if you have chosen to manually fulfill the pre-requisites. Confirm the Client Password by retyping it in the Confirm Password text box.

Proxy Host and ProxyPort

In some environments, all communication with the Azure cloud could be routed through a proxy server. In such environments, you should make sure that the eG agent connects to the cloud via the proxy server and collects metrics. To enable metrics collection via a proxy, specify the IP address of the proxy server and the port at which the server listens against the Proxy Host and Proxy Port parameters. By default, these parameters are set to none, indicating that the eG agent is not configured to communicate via a proxy, by default.

Proxy Username, Proxy Password and Confirm Password

If the proxy server requires authentication, then, specify a valid proxy user name and password in the Proxy Username and Proxy Password parameters, respectively. Then, confirm the password by retyping it in the Confirm Password text box.

Resource Group

Specify the name of the Azure Resource Group that contains the Azure Function App in this text box. The test uses this information to locate the Function App within the monitored Azure subscription and retrieve its performance and health metrics. If the Azure Function App is automatically discovered through Azure Subscription discovery, this parameter is automatically populated. However, you can modify or manually specify the Resource Group name if required.

Function App Name

Specify the name of the Azure Function App to be monitored in this text box. The test uses this name to uniquely identify the target Function App within the specified Resource Group and collect the corresponding metrics from Azure. If the Azure Function App is automatically discovered through Azure Subscription discovery, this parameter is automatically populated with the discovered Function App name. However, you can modify or manually specify the Function App name if required.

DD Frequency

Refers to the frequency with which detailed diagnosis measures are to be generated for this test. The default is 1:1. This indicates that, by default, detailed measures will be generated every time this test runs, and also every time the test detects a problem. You can modify this frequency, if you so desire. Also, if you intend to disable the detailed diagnosis capability for this test, you can do so by specifying none against DD Frequency.

Detailed Diagnosis

To make diagnosis more efficient and accurate, the eG Enterprise embeds an optional detailed diagnostic capability. With this capability, the eG agents can be configured to run detailed, more elaborate tests as and when specific problems are detected. To enable the detailed diagnosis capability of this test for a particular server, choose the On option. To disable the capability, click on the Off option.

The option to selectively enable/disable the detailed diagnosis capability will be available only if the following conditions are fulfilled:

  • The eG manager license should allow the detailed diagnosis capability
  • Both the normal and abnormal frequencies configured for the detailed diagnosis measures should not be 0.
Measurements made by the test
Measurement Description Measurement Unit Interpretation

Debug events

Indicates the number of debug events generated by the Azure Function App during the last measurement period.

Number

Ideally, this value should be low under normal operating conditions. A high value may indicate that verbose logging is enabled or that additional diagnostic information is being generated for troubleshooting.

Use the detailed diagnosis of this measure to view detailed information about the debug events.

Information events

Indicates the number of information events generated by the Azure Function App during the last measurement period.

Number

A higher value generally reflects increased informational logging due to application activity. Unexpected spikes may warrant review to determine whether additional logging has been enabled.

Use the detailed diagnosis of this measure to view detailed information about the information events.

Warning events

Indicates the number of warning events generated by the Azure Function App during the last measurement period.

Number

Ideally, this value should be low. A high value indicates an increase in warning conditions that may require attention before they develop into errors.

Use the detailed diagnosis of this measure to view detailed information about the warning events.

Error events

Indicates the number of error events generated by the Azure Function App during the last measurement period.

Number

Ideally, this value should be zero. A high value indicates that the Function App is encountering execution or application errors that require investigation.

Use the detailed diagnosis of this measure to view detailed information about the error events.

Critical events

Indicates the number of critical events generated by the Azure Function App during the last measurement period.

Number

Ideally, this value should be zero. A high value indicates critical failures that may significantly impact the availability or functionality of the Function App and require immediate attention.

Use the detailed diagnosis of this measure to view detailed information about the critical events.

Triggers by events

Indicates the number of Azure Function trigger events, grouped by Event ID, during the last measurement period.

Number

The detailed diagnosis of this measure lists the Event IDs associated with the trigger events. By analyzing the reported Event IDs, administrators can identify the types of events occurring most frequently and investigate recurring operational events, warnings, or errors affecting the Function App.

Unique triggered functions involved

Indicates the number of unique Azure Function invocation IDs associated with trigger events during the last measurement period.

Number

A higher value indicates that trigger events are associated with a larger number of distinct function invocations.

The detailed diagnosis of this measure lists the Function Invocation IDs corresponding to the trigger events. This helps administrators identify the individual function invocations involved and correlate them with application logs or diagnostic data for troubleshooting.

Triggers by category

Indicates the number of Azure Function trigger events, grouped by category, during the last measurement period.

Number

An unusually high count for a particular category may indicate increased trigger activity, recurring execution failures, or excessive event generation associated with that category. Comparing the reported values across categories can help administrators identify the categories contributing most to the trigger workload and investigate the underlying cause.

The detailed diagnosis lists the categories associated with the trigger events, helping administrators identify which function categories or runtime components are generating the most trigger activity. An unusually high count for a specific category may indicate excessive activity or recurring issues within that category.

Triggers by locations

Indicates the number of Azure Function trigger events, grouped by location, during the last measurement period.

Number

This measure helps identify the locations from which trigger events originated. A high value for a particular location indicates increased trigger activity from that location.

The detailed diagnosis ofthis measure lists the Azure locations where the trigger events occurred. If trigger events are reported from multiple locations, administrators can determine whether the activity or issues are confined to a specific region or distributed across multiple regions.

Triggers by exceptions

Indicates the number of Azure Function trigger events, grouped by exception, during the last measurement period.

Number

Ideally, this value should be zero for all exception types. A high value for a particular exception indicates that multiple trigger executions failed due to the same error and should be investigated.

The detailed diagnosis of this measure displays the complete exception details associated with the trigger events, including the exception type, error message, and stack trace. This enables administrators to identify recurring execution failures, determine the root cause of trigger errors, and troubleshoot issues in the function code, trigger configuration, or the underlying Azure resources.