Sections in Azure App configuration as in appsettings.json

Do you have some Application settings in appsettings.json for App Service (or Azure Function) structured in sections? And do you know how to set up same structure as Application settings in Azure?

Do you have some Application settings in appsettings.json for App Service (or Azure Function) structured in sections? And do you know how to set up same structure as Application settings in Azure?

It’s easy – just write Application settings Key in format Section:MyAttribute

for appsettings.json:

1
2
3
4
5
6
{
  "myGreatApi": {
    "baseUrl": "https://localhost:7071/api/",
    "version": 2,
  }
}

will Application settings look like:

App settings examle

comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy