Martin Staufcik
Martin Staufcik

Reputation: 9502

Azure Key Vault configuration section in .NET Core

I am implementing Azure Key Vault in a .NET Core ASP.NET project. I am trying to create a configuration section in the vault for secrets, but the syntax SectionName:KeyName (which works for App Service configuration) is not allowed for a secret name. Does it mean that ASP.NET Core Configuration sections are not supported for secrets in a Key Vault?

Upvotes: 0

Views: 675

Answers (1)

Tiago Rios
Tiago Rios

Reputation: 283

The default key delimiter on Azure Key Vault is double dash. Therefore, renaming your key to SectionName--KeyName should work.

According with Microsoft documentation, you should be able to change the key delimiter.

Upvotes: 1

Related Questions