Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Azure Token Credentials #87

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

msimmdev
Copy link
Contributor

@msimmdev msimmdev commented Feb 9, 2024

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();

@saleem-mirza saleem-mirza merged commit a081b53 into saleem-mirza:vnext Feb 10, 2024
1 check passed
@saleem-mirza
Copy link
Owner

Thank you @msimmdev for your contribution. I'll appreciate if you can please update README with example configuration reflecting updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants