1

I need to override application configuration via Key Vault:

{
  "Serilog": {
    "MinimumLevel": {
      "Override": {
        "Microsoft.EntityFrameworkCore.Database.Command": "Warning"
      }
    }
  }
}

For hierarchy I need to use --, but Azure Key Vault does not allow to use dot in secret names, so I can't find away to provide namespace:

Serilog - MinimumLevel - Override - Microsoft?EntityFrameworkCore?Database?Command

Any ideas?

2
  • 3
    Did you try replacing . with -- or __, refer stackoverflow.com/a/68224001/19991670? Commented Jun 20 at 9:03
  • @PravallikaKV yes, unfortunately underscore is not allowed and hyphen is not working Commented Jun 23 at 8:29

1 Answer 1

0

Azure Key Vault is not designed to hold configuration settings. It is designed to secure store sensitive information.

As far as I can tell Serilog configuration is not sensitive information, thus you should be either using Azure App Configuration for centralized configuration or environment variables.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.