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 = 0Service principal with a client secret (TenantId + ClientId + ClientSecret). The default for backward compatibility.
DefaultAzureCredential = 2Azure
DefaultAzureCredentialchain — 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 runsaz loginonce) and for Azure-hosted deployments (system-assigned or user-assigned managed identity).TenantIdandClientIdare forwarded as hints; both may be left empty.ManagedIdentity = 1Azure 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
ClientIdis set, a user-assigned managed identity is used; otherwise the system-assigned identity.