Table of Contents

Class ApplicationInsightsOptions

Namespace
Quilt4Net.Toolkit
Assembly
Quilt4Net.Toolkit.dll

This option can be configured by code or with appsettings.json on location "Quilt4Net/ApplicationInsights"

public record ApplicationInsightsOptions : IEquatable<ApplicationInsightsOptions>
Inheritance
ApplicationInsightsOptions
Implements
Inherited Members

Properties

ApplicationAlias

Static application alias map used by IVersionMatrixService consumers that don't pass a per-component AliasFolder. Each entry groups one or more raw cloud_RoleName values under a single logical application name. Hosts with a dynamic alias source (e.g. per-team Mongo lookups) bypass this by passing an AliasFolder delegate directly to the component.

public ApplicationAliasMap[] ApplicationAlias { get; set; }

Property Value

ApplicationAliasMap[]

AuthMode

Authentication mode for connecting to the Application Insights / Log Analytics workspace. Defaults to ClientSecret. Use ManagedIdentity when running in Azure and the hosting identity has Log Analytics Reader on the workspace. Use DefaultAzureCredential for a chained credential that works locally (via az login) and in Azure (via Managed Identity) with the same configuration.

public ApplicationInsightsAuthMode AuthMode { get; set; }

Property Value

ApplicationInsightsAuthMode

ClientId

For ClientSecret: search for 'App registrations' in Azure portal or create a new App registration for Application Insights access. (Remember the app-name) When creating a new app registration, assign the API permission 'Application Insights API' with 'Data.Read' access. (Add a permission / APIs my organization uses / Application Insights API) (Use Application permission, not Delegated) Also create a Client secret that will be used for 'ClientSecret' below. Under workspace on your application insights, go to 'Access control (IAM)' and add role access 'Reader' to the app registration with app-name.

For ManagedIdentity: leave empty to use the system-assigned managed identity, or set to the client id of a user-assigned managed identity.

For DefaultAzureCredential: optional hint — when set, the chained credential prefers this user-assigned managed identity if Managed Identity lights up in the chain.

public string ClientId { get; set; }

Property Value

string

ClientSecret

Only required when AuthMode is ClientSecret. Not consulted in ManagedIdentity or DefaultAzureCredential.

public string ClientSecret { get; set; }

Property Value

string

EnvironmentOrder

Preferred environment ordering for the version matrix. Environments listed here render in the given order; environments seen in telemetry but not listed render after, sorted alphabetically; environments with empty names render last as (unknown). Falls back to ["Development", "CI", "Staging", "Test", "Production"] when null/empty.

public string[] EnvironmentOrder { get; set; }

Property Value

string[]

TenantId

This value can be found under 'Tenant properties' in Azure portal. Only required when AuthMode is ClientSecret.

public string TenantId { get; set; }

Property Value

string

WorkspaceId

This value can be found under application insights. Click 'Workspace' under overview.

public string WorkspaceId { get; set; }

Property Value

string