{"title":"Alert on telemetry","url":"https://jonas-paprotka.de/docs/dev-itpro/administration/telemetry-alert/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/telemetry-alert, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/telemetry-alert","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Set up alerts on Business Central telemetry with Azure Monitor, Logic Apps, or Power Automate to respond to issues and environment changes.","date":"2026-11-17","meta":{"topic":"how-to"},"outline":[{"level":2,"title":"Track telemetry with Power BI goals","slug":"track-telemetry-with-power-bi-goals","at":547,"chars":1592},{"level":2,"title":"Low-code alerting with KQL","slug":"low-code-alerting-with-kql","at":2139,"chars":4403},{"level":3,"title":"Create alerts in Azure Application Insights","slug":"create-alerts-in-azure-application-insights","at":2943,"chars":660},{"level":3,"title":"Create alerts using Azure Logic Apps and Power Automate","slug":"create-alerts-using-azure-logic-apps-and-power-automate","at":3603,"chars":2939},{"level":4,"title":"Example - Run an alerting query every \"n\" days and send an email","slug":"example---run-an-alerting-query-every-n-days-and-send-an-email","at":5211,"chars":684},{"level":4,"title":"Example - Run an alerting query every \"n\" minutes and send a message to Teams","slug":"example---run-an-alerting-query-every-n-minutes-and-send-a-message-to-teams","at":5895,"chars":647},{"level":2,"title":"Related information","slug":"related-information","at":6542,"chars":143}],"text":"If something happens in your environment or app that you need to act on, you can set up a system that sends you an alert. Azure Application Insights makes it easy to define such alerts.\nYou can use the following tools to define and set up alerts on telemetry events:\n Azure Application Insights Alerts\n Azure Logic Apps\n Power Automate\nIf you use the Power BI app on telemetry data, you can also use Power BI goals to track measures against business objectives.\nFor telemetry alerts, you need a Kusto (KQL) query to define the alerting condition.\n## Track telemetry with Power BI goals\nIf you use the Power BI app on telemetry data, you can track the goals that are important to you.\nWith goals in Power BI, you can curate your own goals 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.\nFollow this four-step process to set up goals in Power BI:\n1. Create a scorecard in the Power BI service. See Create scorecards in Power BI<https://learn.microsoft.com/power-bi/create-reports/service-goals-create>.\n1. Add the goals you want to track by connecting to your Power BI report on telemetry. See https://learn.microsoft.com/power-bi/create-reports/service-goals-create-connected.\n1. Define status rules for your goals to automate status updates based on value, percentage of target met, date conditions, or a combination. For connected goals, these status rules are refreshed every time the data in your scorecard is refreshed. See Create automated status rules for goals<https://learn.microsoft.com/power-bi/create-reports/service-metrics-status-rules>.\n1. Review the goal details and status changes in the scorecard. See Stay on top of your goals in Power BI<https://learn.microsoft.com/power-bi/create-reports/service-metrics-follow>.\nFor notifications based on a telemetry query, use Azure Monitor alerts, Azure Logic Apps, or Power Automate. See telemetry-alert and Get started with goals in Power BI<https://learn.microsoft.com/power-bi/create-reports/service-goals-introduction>.\n## Low-code alerting with KQL\nWhen defining an alert based directly on telemetry, you need to define two things:\n1. A Kusto (KQL) query that defines the alerting condition. It's considered good practice to add a where clause that limits the timestamp of events in the query, for example, `| where timestamp > ago(1h)`.\n1. How often you want to run the alerting query. Choose the frequency based on how quickly you need to respond and account for ingestion delay. The frequency can be shorter than the query's lookback period.\n> TIP\n> Samples of alerting queries are shared by Microsoft and third parties on the Business Central BCTech repository on GitHub<https://github.com/microsoft/BCTech/tree/master/samples/AppInsights/Alerts>. You can also share your alerting queries with the community on GitHub.\n### Create alerts in Azure Application Insights\nIf you want to create alerts in Azure Application Insights, then do as follows:\n1. Open the https://portal.azure.com and locate your Application Insights resource.\n1. In the navigation pane on the left, select Alerts, and then select Create > Alert rule.\n1. On the Condition tab, select Custom log search, and then enter your KQL alerting query.\n1. Configure the threshold and evaluation frequency, select or create an action group for notifications, and create the alert rule.\nSee Create Azure Monitor log search alert rules<https://learn.microsoft.com/azure/azure-monitor/alerts/alerts-create-log-alert-rule>.\n### Create alerts using Azure Logic Apps and Power Automate\nAzure Logic Apps and Power Automate can use the Azure Monitor Logs connector to query telemetry for custom notifications or actions triggered by an environment's lifecycle event. When querying the linked Log Analytics workspace, use workspace table and column names, such as AppTraces, TimeGenerated, and Properties, instead of traces, timestamp, and customDimensions. See Azure Monitor Logs connector<https://learn.microsoft.com/connectors/azuremonitorlogs/>.\n> NOTE\n> Samples of custom notifications and automations are shared by Microsoft and third parties on the Business Central BCTech repository on GitHub<https://github.com/microsoft/BCTech/tree/master/samples/AppInsights/Alerts>. You can also share your Application Insights Alerts and Automations with the community on GitHub.\nThe samples below can help you get started with customization and automation using Application Insights.\n> IMPORTANT\n> These sample templates use the deprecated Azure Application Insights connector and API-key authentication. For new workflows, use the Azure Monitor Logs connector with Microsoft Entra authentication. Adapt the sample queries, connection resources, and result handling before using them with the new connector.\n> Deploying a Logic App also creates the API connection resources needed by its actions. After deployment, open those resources in the Azure portal to authenticate them.\n> If the required API connection resources already exist in the selected resource group, you can reuse them by entering the same resource name before deployment.\n#### Example - Run an alerting query every \"n\" days and send an email\nThis Logic App runs at an interval in days specified during deployment. It lists updates automatically scheduled for environments that emit telemetry to the specified Application Insights resource during that period. It filters on event LC0101 and excludes schedules selected by a partner. Administrators can use this app to supplement update notifications.\nDeploy the available update notification template to Azure<https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2FBCTech%2Fmaster%2Fsamples%2FAppInsights%2FAlerts%2FAvailableUpdatesNotification.json>.\n#### Example - Run an alerting query every \"n\" minutes and send a message to Teams\nThis Logic App queries Application Insights every number of minutes (specified in app deployment). It notifies a user (also specified in deployment) of any deleted environments in Microsoft Teams. The action that sends the notification in Teams can be updated to notify a Channel or Group Chat instead.\nDeploy the deleted environment notification template to Azure<https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2Fmicrosoft%2FBCTech%2Fmaster%2Fsamples%2FAppInsights%2FAlerts%2FDeletedEnvironmentNotification.json>.\n## Related information\ntelemetry-overview\nEnabling telemetry<telemetry-enable-application-insights>\ntelemetry-available-telemetry\ntelemetry-faq"}