Disable Local Auth on Azure ApplicationInsights
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
We have a goal to disable local auth by default in our Azure integrations and only use managed identity.
`AddAzureApplicationInsights` should set the `ApplicationInsightsComponent` to have `DisableLocalAuth=true` by default.
https://learn.microsoft.com/en-us/azure/templates/microsoft.insights/components?pivots=deployment-language-bicep#resource-format
https://github.com/dotnet/aspire/blob/fe64638b9f7bd1f1e3a5ad704f00cf72b24e5162/src/Aspire.Hosting.Azure.ApplicationInsights/AzureApplicationInsightsExtensions.cs#L68-L73
This may require changes to docs or other code, since the way the application gets the connection is via a "ConnectionString" output that contains information about the app.
When doing this, we should verify that the Azure Monitor SDK and similar work out of the box. If code changes are needed we should add them to our docs.
Contributor guide
Assessment
This issue has not been assessed yet.