Reputation: 2231
Scenario
I host my Net Core 3.1 WebApp Aplication on a Linux App Service Plan on Azure.
I use some library which needs to have provided some settings object in appsettings.json
like this:
"Container": {
"Settings1": "val1",
"Settings2": "val2"
}
How to provide those appsettings in ARM template? I have tried:
"appSettings": [
{
"name": "Container:Settings1",
"value": "val1"
},
{
"name": "Container:Settings2",
"value": "val2"
},
but :
does not help me set those settings in way that is needed for those third party library
Upvotes: 1
Views: 195
Reputation: 2231
For reason that I use Linux Web App, it is needed to set appSettings with double underscore __
instead of colon :
"appSettings": [
{
"name": "Container__Settings1",
"value": "val1"
},
{
"name": "Container__Settings2",
"value": "val2"
},
Upvotes: 1