๐น Feature: Microsoft Entra Authentication for Application Insights
๐น What It Does: Ingest telemetry into Application Insights using Microsoft Entra ID instead of instrumentation keys. Managed identities replace shared secrets, and local authentication can be fully disabled โ ensuring only Entra-authenticated telemetry reaches your resource. Critical for alerting, autoscaling, and all operational decisions built on telemetry you trust. ๐
๐ก What Is It Giving You:
โ
No More Instrumentation Keys in Config: Apps authenticate via their managed identity โ no rotation, no secret leakage, no connection strings in pipelines, ARM templates, or Git.
โ
Disable Local Auth Entirely: Set DisableLocalAuth = true on your App Insights resource to reject API keys and legacy instrumentation keys. Pure Zero Trust telemetry ingestion.
โ
Built-in Azure Policy Enforcement: Use the built-in policy โApplication Insights components should block non-Azure Active Directory based ingestionโ to audit or enforce across subscriptions or management groups โ no custom policies needed.
โ
Broad SDK Coverage โ GA: ASP.NET Core, .NET Classic, Java Agent (stable), Node.js, Python โ all support Entra auth via DefaultAzureCredential or ManagedIdentityCredential.
โ
Zero-Code Auto-Instrumentation: For Azure App Service, set APPLICATIONINSIGHTS_AUTHENTICATION_STRING=Authorization=AAD (system-assigned) or Authorization=AAD;ClientId={uami-client-id} (user-assigned). Done.
โ
Monitoring Metrics Publisher Role: A single built-in RBAC role grants telemetry ingestion rights at resource, RG, or subscription scope โ covers all telemetry types.
โ
Trustworthy Operational Decisions: Alerts, autoscale rules, SLOs, and incident response all run on telemetry that canโt be spoofed by rogue sources.
โ ๏ธ Application Insights JavaScript web SDK does not support Entra auth โ browser telemetry requires the classic flow
โ ๏ธ Profiler for .NET and Python auto-instrumentation on App Service have gaps โ validate before setting DisableLocalAuth in production.
๐ https://learn.microsoft.com/en-us/azure/azure-monitor/app/azure-ad-authentication