How to define environment variables in the app settings of an azure app service to override a list such as the following?
"reportsSettings": {
"emails": [
"[email protected]",
"[email protected]",
"[email protected]"
]
}
ps: I know I could turn the list into a string with a separator that my code would split like
"reportsSettings": {
"emails": "[email protected]",[email protected],[email protected]"
}
and then use an environment variable defined like that:
key => reportsSettings:emails
value => [email protected]",[email protected],[email protected]
but I'm trying to see I can keep the json as a list.
You can do this by appending the index after the key:
reportsSettings:emails:0 ===> [email protected]
reportsSettings:emails:1 ===> [email protected]
reportsSettings:emails:2 ===> [email protected]
Here how it looks like in the portal
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With