Table of Contents

Enum ApplicationInsightsAuthMode

Namespace
Quilt4Net.Toolkit.Features.ApplicationInsights
Assembly
Quilt4Net.Toolkit.dll

Authentication mode for querying an Application Insights / Log Analytics workspace.

public enum ApplicationInsightsAuthMode

Fields

ClientSecret = 0

Service principal with a client secret (TenantId + ClientId + ClientSecret). The default for backward compatibility.

DefaultAzureCredential = 2

Azure DefaultAzureCredential chain — falls through environment variables, workload identity, Managed Identity (in Azure), Visual Studio / VS Code credentials, and Azure CLI (az login), returning the first that succeeds. Same configuration works for local development (developer runs az login once) and for Azure-hosted deployments (system-assigned or user-assigned managed identity). TenantId and ClientId are forwarded as hints; both may be left empty.

ManagedIdentity = 1

Azure Managed Identity. Works when the app runs in Azure (App Service, Container Apps, VMs, …) and its identity has been granted Log Analytics Reader (or Monitoring Reader) on the target workspace. If ClientId is set, a user-assigned managed identity is used; otherwise the system-assigned identity.