Detect Intune App Installation Anomalies with Azure AI

Historical Intune app-install anomaly detection with Azure Anomaly Detector. Check the October 2026 retirement notice and plan a supported reporting approach.

Detect Intune App Installation Anomalies with Azure AI

Update 06.09.2026: This is a historical Azure Anomaly Detector tutorial. Microsoft’s retirement notice states that the service retires on 1 October 2026. Do not start a new dependency on this service; review existing workloads and plan a supported replacement.

In this guide I will show you how to Detect Intune App Installation Anomalies with Azure AI. In one of my previous blog posts I explained how you can use Azure Automation and Azure Cognitive Services (now Azure AI Services) to monitor the compliance state of your environment and notify you if there are major deviations. In this part of the series I want to apply the same approach to application deployment, so you can Detect Intune App Installation Anomalies and get notified automatically if the installation of an application suddenly fails abnormally often. You can read more about the underlying service in the official Microsoft Learn documentation.

Azure anomaly detector monitoring Intune application installation failures

How to Detect Intune App Installation Anomalies: getting the data

Each app in your portfolio in Intune provides detailed per-device reporting on the status of the installation. You can see whether the installation was successful or if it failed. This per-device data is exactly what we need to Detect Intune App Installation Anomalies, because it lets the model learn what a normal failure rate looks like.

Azure portal anomaly detector setup screen

To get this information we start a network trace in the Edge browser and refresh the view. In the trace we get the graph endpoint. The graph endpoint must be called with a POST request with a few parameters in the body to specify which data we want to receive.

Azure portal anomaly detector setup for Intune monitoring

Azure portal anomaly detector setup for Intune monitoring

This is all the information we need to Detect Intune App Installation Anomalies, so let’s get started.

Deployment of the Azure AI Services Anomaly Detector

Azure anomaly detector setup for Intune application installations

  • Click + Create

Detect Intune App Installation Anomalies with Azure AI

  • Select a Subscription and Resource group
  • Select a Region and enter the Name of the Anomaly Detector
  • Select the price tier (For testing Free F0 is sufficient)

Detect Intune App Installation Anomalies with Azure AI

  • Click Create

Detect Intune App Installation Anomalies with Azure AI

Get Teams WebHook URL

  • Create an MS Teams channel and add the webhook connector

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Copy the WebHook URL

Detect Intune App Installation Anomalies with Azure AI

Create a App Registration

  • Search for Microsoft Entra ID

Detect Intune App Installation Anomalies with Azure AI

  • Select App registration

Detect Intune App Installation Anomalies with Azure AI

  • Select +New registration

Detect Intune App Installation Anomalies with Azure AI

  • Enter a Name and click Register

Detect Intune App Installation Anomalies with Azure AI

  • Click API permissions and +Add a permission

Detect Intune App Installation Anomalies with Azure AI

  • Select Microsoft Graph

Detect Intune App Installation Anomalies with Azure AI

  • Select Application permissions

Detect Intune App Installation Anomalies with Azure AI

  • Search for DeviceManagementApps.Read.All

Detect Intune App Installation Anomalies with Azure AI

  • Click Grant admin consent for *** and approve with Yes

Detect Intune App Installation Anomalies with Azure AI

  • Select Certificates & secrets and click +New client secret

Detect Intune App Installation Anomalies with Azure AI

  • Enter a Description and select a Expires time
  • Click Add

Detect Intune App Installation Anomalies with Azure AI

  • Copy and save the Value and the Secret ID

Detect Intune App Installation Anomalies with Azure AI

Create Automation Account

  • Search for Automation Accounts

Detect Intune App Installation Anomalies with Azure AI

  • Click + Create

Detect Intune App Installation Anomalies with Azure AI

  • Select a Subscription and a Resource group
  • Enter an account name and select a Region
  • Click Next

Detect Intune App Installation Anomalies with Azure AI

  • Click Next

Detect Intune App Installation Anomalies with Azure AI

  • Click Next -> Next -> Create

Detect Intune App Installation Anomalies with Azure AI

Create the Runbook

  • Open the Automation Account
  • Navigate to Variables and click + Add a variable

Detect Intune App Installation Anomalies with Azure AI

  • Add the Secret Value, TenantId, AnomalyKey, WebHookUri and the App ID as Variable

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Detect Intune App Installation Anomalies with Azure AI

  • Select Runbooks

  • Click + Create a runbook

Detect Intune App Installation Anomalies with Azure AI

  • Enter a Name
  • Select PowerShell as Runbook type
  • Select 5.1 as Runtime version
  • Click Create

Detect Intune App Installation Anomalies with Azure AI

  • Insert the Script from my Github repository
  • Edit the variables $anomalyEndpoint (add here your endpoint from the Azure AI Services Anomaly Detector)

Detect Intune App Installation Anomalies with Azure AI

Hint: If you want to change the sensitivity of the anomaly detection you can adjust the attributes:
– maxAnomalyRatio: The maximum anomalies to be detected in terms of the ratio of total data points.
– sensitivity: Specify a lower value to ensure that fewer anomalies are accepted

Detect Intune App Installation Anomalies with Azure AI

  • Save and test the script

Detect Intune App Installation Anomalies with Azure AI

Detect Intune App Installation Anomalies with Azure AI Detect Intune App Installation Anomalies with Azure AI

  • Click Publish

Detect Intune App Installation Anomalies with Azure AI

  • Navigate to Schedules and click + Add a schedule

Detect Intune App Installation Anomalies with Azure AI

Detect Intune App Installation Anomalies with Azure AI

  • Click Link to schedule and add the created schedule

Detect Intune App Installation Anomalies with Azure AI

Detect Intune App Installation Anomalies with Azure AI

Conclusion

I hope you enjoyed the second part of my series and that this setup helps you Detect Intune App Installation Anomalies and become aware of errors in your Intune environment earlier. Application deployment is a very central part of good device management, and to ensure user productivity it is important that it works reliably and error-free. Being able to Detect Intune App Installation Anomalies in near real time means that, as soon as there are problems with individual applications, this implementation sends notifications directly to a Teams channel.

Stay healthy, Cheers
Jannik

May Cloudflare measure page views, visits and loading times? The analytics service uses no tracking cookies or session recordings. You can change your choice in the footer at any time.

Privacy details