Tracking issue surfaced during PR #166.
Current state
The API authenticates to App Insights (sstudio-mobile-ai) via an embedded connection string in appsettings.Production.json. Works, but it's a long-lived secret in source-ish config.
Target state
Replace the connection string with DefaultAzureCredential so the API's Container App managed identity authenticates directly to the App Insights workspace. No embedded key.
Work required
Context: PR #166
Tracking issue surfaced during PR #166.
Current state
The API authenticates to App Insights (
sstudio-mobile-ai) via an embedded connection string inappsettings.Production.json. Works, but it's a long-lived secret in source-ish config.Target state
Replace the connection string with
DefaultAzureCredentialso the API's Container App managed identity authenticates directly to the App Insights workspace. No embedded key.Work required
Monitoring Metrics Publisherrole on the App Insights resource (and whatever ingestion roles the current SDK needs)Program.cs/ OTel wiring to useAddAzureMonitorExporterwith credential-based auth (or equivalent)appsettings.Production.jsonContext: PR #166