There is no builtin support, but you can create a custom configuration provider.
https://video2.skills-academy.com/en-us/dotnet/core/extensions/custom-configuration-provider
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi all,
I have an asp.net 8 application and using configuration system of asp.net.
This app is hosted in azure container apps. There are used secrets and via environment variables are passed configuration to asp.net configuration (options) system.
For example when having json configuration like this:
{
"DatabaseSettings": {
"DBProvider": "",
"ConnectionStringCatalog": ""
}
}
then using following environment variable to map connection string: DatabaseSettings__ConnectionStringCatalog
I would like to be able to use entire json in environment variable. For example use environment variable name DatabaseSettings
and pass there a json value via secret.
Thank you
There is no builtin support, but you can create a custom configuration provider.
https://video2.skills-academy.com/en-us/dotnet/core/extensions/custom-configuration-provider