You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: standardize AppInsights on APPLICATIONINSIGHTS_CONNECTION_STRING
Root cause: workflow was setting ApplicationInsights__ConnectionString (double-underscore
hierarchical .NET config key) which does NOT match the flat env var that UseAzureMonitor()
and Aspire's AzureApplicationInsightsResource both expect.
- workflow: rename ApplicationInsights__ConnectionString -> APPLICATIONINSIGHTS_CONNECTION_STRING
(both Staging and Production deploy steps; secret reference unchanged)
- Program.cs: remove 3-key fallback chain; single builder.Configuration["APPLICATIONINSIGHTS_CONNECTION_STRING"]
check; simplify UseAzureMonitor() to no-arg form (auto-reads the canonical env var)
Official docs: 'The Azure Monitor distro expects the environment variable to be
APPLICATIONINSIGHTS_CONNECTION_STRING' (learn.microsoft.com/dotnet/aspire)
0 commit comments