---
title: "App Insights Standard availability tests still ingest results when DisableLocalAuth is true"
url: "https://www.dariuszparys.com/notes/app-insights-availability-tests-ingest-with-local-auth-disabled"
author: "Dariusz Parys"
published: 2026-12-02T00:00:00.000Z
description: "Standard availability tests deliver results to an Application Insights component that has DisableLocalAuth set to true, so synthetic tests need no second component or key-based ingestion, and a log alert can catch tests that stop reporting."
tags:
  - "Azure"
  - "Observability"
  - "Security"
---

# App Insights Standard availability tests still ingest results when DisableLocalAuth is true

## Context

An Application Insights component had `DisableLocalAuth: true`, so it only accepted Entra-authenticated ingestion. It was unclear whether Microsoft-run Standard availability tests (`Microsoft.Insights/webtests`, kind `standard`) would still deliver results. If they didn't, the metric alerts on those tests would have no data and would never fire.

## Insight

Standard availability tests still ingest results when local auth is disabled. Before you add a second Application Insights component or re-enable key-based ingestion just for synthetic tests, know that you don't need to.

Verified on 2026-12-02: I created a temporary Standard webtest with `az rest --method put` against a component with `DisableLocalAuth: true`. It wrote rows to `availabilityResults` within a minute, from every configured location.

Quick check against an existing component:

```bash
az monitor app-insights query --app <component> -g <resource-group> --offset 1h \
  --analytics-query 'availabilityResults | summarize count() by name, location'
```

## Standing guard against silent alerts

A metric alert with no data never fires, so add a log alert (scheduled query rule) scoped to the component. It returns one row per test that recorded no result in the window, so alert on a row count above 0. The `name` in `availabilityResults` matches the webtest's `Name` property.

```kusto
datatable(name: string) ["<test-name-1>", "<test-name-2>"]
| join kind=leftanti (availabilityResults | distinct name) on name
```

I used a 30-minute window, evaluated every 15 minutes. It can fire once right after the first deployment, before the tests report their first results.

## Docs checked

None of these pages say how Standard tests behave with `DisableLocalAuth` set. That doesn't prove the docs never cover it:

- [Microsoft Entra Authentication for Application Insights](https://learn.microsoft.com/en-us/azure/azure-monitor/app/azure-ad-authentication)
- [Application Insights availability tests](https://learn.microsoft.com/en-us/azure/azure-monitor/app/availability)
- [Troubleshoot missing application telemetry](https://learn.microsoft.com/en-us/troubleshoot/azure/azure-monitor/app-insights/telemetry/investigate-missing-telemetry)
- [Availability monitoring common issues FAQ](https://learn.microsoft.com/en-us/troubleshoot/azure/azure-monitor/app-insights/availability/availability-monitoring-common-issues-faq)
- [Diagnose problems that cause availability tests to fail](https://learn.microsoft.com/en-us/azure/azure-monitor/app/troubleshoot-availability)
- [Microsoft.Insights/webtests template reference](https://learn.microsoft.com/en-us/azure/templates/microsoft.insights/webtests)
