ApplicationInsights-dotnet icon indicating copy to clipboard operation
ApplicationInsights-dotnet copied to clipboard

POC to manually configure alternate audiences for AAD

Open TimothyMothra opened this issue 3 years ago • 0 comments

This PR is a Proof of Concept to support configuring alternate audiences for AAD. I'm using this as a conversation starter.

How to use:

var config = new TelemetryConfiguration
{
    ConnectionString = "..."
}
var credential = new DefaultAzureCredential();
config.SetAzureTokenCredential(
    tokenCredential: credential,
    audience: AzureMonitorAudience.AzurePublicCloud);

TimothyMothra avatar Jul 08 '22 17:07 TimothyMothra