# Application Insights components should block non-Entra ingestion

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

Application Insights components should block non-Entra ingestion is an Azure guardrail written in Azure Policy. Denies Application Insights components that accept log ingestion without Microsoft Entra authentication. What it breaks: existing components that accept unauthenticated ingestion are marked non-compliant but not changed.

```text
Built-in policy definition: Application Insights components should block non-Azure Active Directory based ingestion.
Definition ID: 199d5677-e4d9-4264-9465-efe1839c06bd
Category: Monitoring
Supported effects: Deny, Audit, Disabled
policyRule (copied from the repository file):
{
    "if": {
      "allOf": [
        {
          "field": "type",
          "equals": "Microsoft.Insights/components"
        },
        {
          "field": "Microsoft.Insights/components/DisableLocalAuth",
          "notEquals": "true"
        }
      ]
    },
    "then": {
      "effect": "[parameters('effect')]"
    }
  }
```

- **Blocks:** Denies Application Insights components that accept log ingestion without Microsoft Entra authentication.
- **Breaks:** Existing components that accept unauthenticated ingestion are marked non-compliant but not changed. ([source](https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny))
- **Test before applying:** As for every Azure Policy guardrail: [how to test before enforcing](/mechanisms/azure-policy/)
- **Mechanism:** [Azure Policy (built-in definitions)](/mechanisms/azure-policy/): Resources at the scope of the assignment (management group, subscription, resource group) and their children, except notScopes and exemptions
- **Taken from:** [open source set](https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Monitoring/ApplicationInsightsComponents_DisableLocalAuth_Deny.json), MIT License, Azure/azure-policy repository, https://raw.githubusercontent.com/Azure/azure-policy/master/LICENSE

## What the source says

"Enforcing log ingestion to require Azure Active Directory authentication prevents unauthenticated logs from an attacker which could lead to incorrect status, false alerts, and incorrect logs stored in the system." (read 10 Nov 2026).

What it breaks is documented for every guardrail of this mechanism: see [Azure Policy](/mechanisms/azure-policy/).

## Related guardrails

- [Deny enabling and disabling AWS Config](/guardrails/aws-scp-deny-config-changes/): AWS, Service control policies (SCPs), logging and monitoring
- [Deny modifications to specific CloudTrail trails](/guardrails/aws-scp-deny-cloudtrail-trail-changes/): AWS, Service control policies (SCPs), logging and monitoring
- [Deny disabling or modifying Amazon GuardDuty](/guardrails/aws-scp-deny-guardduty-changes/): AWS, Service control policies (SCPs), logging and monitoring
- [Deploy diagnostic settings for Key Vault to Event Hub](/guardrails/azure-policy-keyvault-diagnostic-logs/): Azure, Azure Policy (built-in definitions), logging and monitoring

## Related pages

- [Configure Cognitive Services accounts to disable public network access (Azure Azure Policy)](/guardrails/azure-policy-ai-disable-public-network/)
- [Configure Cognitive Services accounts to disable local authentication (Azure Azure Policy)](/guardrails/azure-policy-ai-disable-local-auth/)
- [Configure Azure AI Services resources to disable local key access (Azure Azure Policy)](/guardrails/azure-policy-ai-disable-local-auth-dine/)

## Sources

- Application Insights components should block non-Entra ingestion: https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Monitoring/ApplicationInsightsComponents_DisableLocalAuth_Deny.json (read 10 Nov 2026)
- What it breaks: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/effect-deny (read 10 Nov 2026)
- How to test it first: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/assignment-structure (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/guardrails/azure-policy-appinsights-entra-ingestion/
