Setting Up Alerts in Azure Application Insights

  1. Introduction
  2. Create alerts in Azure Application Insights
  3. Create alerts using Azure Logic Apps and Power Automate

D365 Finance integrates robust telemetry features that are ready to use when Application Insights is enabled. These features provide essential information on various aspects of the system and help customers monitor performance, diagnose problems, and optimize their operations.

When a D365 Finance environment transmits telemetry data to Azure Application Insights, it can be used to create proactive alerts.

  • Notify system administrators when loading specific forms takes longer than usual.
  • Receive notifications when specific errors occur in nightly batch tasks.

You can use the following tools to set and configure alerts on telemetry events:

  • Alertes Azure Application Insights
  • Power BI metrics
  • Azure logical applications
  • Power Automate

Alerts help you detect and resolve issues before users notice by proactively alerting you when Azure Monitor data indicates there may be a problem with your infrastructure or application.

You can generate alerts on any metric or log data source in the Azure Monitor data platform.

An alert rule monitors your data and captures a signal that an event is occurring on the specified resource. The alert rule captures the signal and checks if it meets the criteria of the condition.

An alert rule combines:

  • Resources to be monitored.
  • The signal or data of the resource.
  • Conditions.

An alert is triggered if the conditions of the alert rule are met. The alert triggers the associated action group and updates its status. If you monitor multiple resources, the alert rule condition is assessed separately for each of them, and alerts are triggered for each resource separately.

Alerts are kept for 30 days and are deleted after this period. You can view all the alert instances for all your Azure assets on the Alerts page in the Azure portal.

The alerts consist of:

  • Action groups: These groups can trigger notifications to inform users of an alert triggering or launch automated workflows.
  • Alert conditions: These conditions are defined by the system. When an alert triggers, the alert condition is set to ‘triggered’. Once the underlying condition causing the trigger is resolved, the alert condition is set to ‘resolved’.
  • User response: The response is defined by the user and does not change as long as he does not modify it. It can be ‘New’, ‘Acknowledgment of receipt’ or ‘Closed’.
  • Alert processing rules: you can use alert processing rules to change the triggered alerts as they are triggered.

To create alerts in Azure Application Insights, follow these steps.

  • In the Azure portal, search for your Application Insights resource.
  • In the left pane, select Alerts.

Azure Logic Apps and Power Automate have built-in connectors to query telemetry in Azure Application Insights. You can set up custom notifications. You can also automate specific actions triggered by events in D365.