Azure AD Authentication In the ApplicationInsights Sink #541
Labels
application-insights
All issues related to Azure Application Insights
feature-request
All issues related to feature requests by customers
Milestone
Is your feature request related to a problem? Please describe.
Azure provides now a way to authenticate towards AppIns via a service principal. I was always suprised why they didn't provide something like this sooner, but hey :).
Now it is supported I want to leverage from this via Arcus.
When setting up your sink, there should be a way to set this authentication.
More information on the tool itself: https://learn.microsoft.com/en-us/azure/azure-monitor/app/azure-ad-authentication?tabs=net.
Describe the solution you'd like
There are two ways we can handle these things...
We now have in the sink startup
WriteTo.AzureApplicationInsightsWithConnectionString
, where we could add an overload parameter with tokenCredential (so you can choose managed identity or service principal).Or we add an extension method on top of
WriteTo.AzureApplicationInsightsWithConnectionString
, with name similar to'UsingAuthenication('TokenCredential credential)
.Describe alternatives you've considered
There are no real alternatives, I am a bit stuck as I cannot use the Serilog sink as it doesn't do the convertions.
Additional context
/
The text was updated successfully, but these errors were encountered: