I've added support for Azure Token Credentials in options as an alternative to providing a client ID and secret. This allows utilising Azure Managed Identity to connect azure deployed applications as well as other credetnial providers supported in the Azure.Identity library
Example Configuration
var logger = new LoggerConfiguration()
.WriteTo.AzureLogAnalytics(
new LoggerCredential() {
Endpoint = "*******",
ImmutableId = "*******",
StreamName = "*******",
TokenCredential = new DefaultAzureCredential()
}, new ConfigurationSettings())
.CreateLogger();
I've added support for Azure Token Credentials in options as an alternative to providing a client ID and secret. This allows utilising Azure Managed Identity to connect azure deployed applications as well as other credetnial providers supported in the Azure.Identity library
Example Configuration