Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

C# examples using pod identity #1026

Answered by cramsey86
zimmerab asked this question in Q&A
Discussion options

You must be logged in to vote

Disclaimer: I am not a developer, this is code from a generic library we have.

        private static IConfigurationBuilder AddAzureAppConfiguration(this IConfigurationBuilder config, IConfigurationRoot settings, string serviceName, bool useTimerForRefresh = true)
        {
            var credentials = BuildCredentials(settings);

            config.AddAzureAppConfiguration(options =>
            {
                // This takes the place of the UserName of the user on the machine.
                var userName = settings[UserName];

                // Get the Contoso Environment Variable.  This should take the place of the ASPNETCORE_ENVIRONMENT environment variable.
                var e…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by chewong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants