Azure Key Vault configuration section in .NET Core

Viewed 51

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?

1 Answers

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.

Related