Use telemetry-based alerts
When a Microsoft Dynamics 365 Finance and Microsoft Dynamics 365 Supply Chain Management environment is emitting telemetry to Azure Application Insights, that telemetry can be used to create proactive alerts. Here are some examples of alerting:
- Notify stakeholders when someone changes a customer bank account.
- Notify system administrators when specific form loads are taking longer than usual.
- Get notifications when specific errors occur in nightly batch jobs.
You can use the following tools to define and set up alerts on telemetry events:
- Azure Application Insights Alerts
- Power BI metrics
- Azure Logic Apps
- Power Automate
No-code alerting with Power BI Metrics
If you use the Power BI app on telemetry data, it's easy to track the metrics that are important to you.
With metrics in Power BI, you can curate your own metrics and track them against key business objectives in a single pane. This feature enhances data culture by promoting accountability, alignment, and visibility for teams and initiatives within organizations.
Follow this four-step process to set up alerting with Power BI Metrics.
- Create a scorecard in the Power BI service. Learn more in Create scorecards and manual metrics in Power BI.
- Add the metrics that you want to track by connecting to your Power BI report on telemetry. Learn more in Create connected goals in Power BI.
- Add alerting by defining status rules for your metrics. Statuses are then automatically updated based on the rules that govern each metric. Because the rules trigger changes based on the value, the percentage of the target that was met, date conditions, or a combination of the three, they are very versatile. For connected metrics, the status rules are refreshed every time the data on the scorecard is updated. Learn more in Create automated status rules for metrics.
- Follow metrics to get alerts in Teams or by email. Learn more in Follow your metrics.
Learn more about Power BI Metrics in Get started with goals in Power BI.
Create alerts in Azure Application Insights
To create alerts in Azure Application Insights, follow these steps.
- In the Azure portal, find your Application Insights resource.
- In the left pane, select Alerts.
- In the condition for a custom log search, add an alerting condition query in Kusto Query Language (KQL).
Learn more about alerts and how to create them in What are Azure Monitor alerts?
Create alerts by using Azure Logic Apps and Power Automate
Azure Logic Apps and Power Automate have built-in connectors that can be used to query telemetry in Azure Application Insights. You can configure custom notifications. You can also automate specific actions that are triggered by events or trends that occur in Finance and Supply Chain Management.
Important
When you deploy a logic app to Azure, the API Connection Resources that are required to authenticate specific actions in the logic app are also created.
After you deploy the logic app, go to those API Connection Resources in the Azure portal to authenticate them. The Application Insights API Connection Resource can be authenticated by using the application ID and an API key. You can find and generate it on the API Access page of the Azure Application Insights resource in the Azure portal.
If API Connection Resources for the connections that are required to run the logic app are already deployed in the selected resource group, you can reuse them. Just enter the same resource name before you deploy the logic app.