I'm trying to specify an app setting in my ARM template that points to a specific folder location where the web application I'm deploying should store log files, ex: D:\folder\logs. When I specify the folder location though it complains about the value being empty. If I add a double slash (\) the errors go away but it fails to deploy.
I've tried adding these specific app settings, ones with folder locations, as parameters and reference them like so in the template.json file - [parameters('log-folder')] but it fails and says it can't locate the specified parameter. I would appreciate any help. I've posted some of the parameters and template json files I'm working with below:
**template.json file**
--------
"properties": {
"name": "[parameters('name')]",
"siteConfig": {
"appSettings": [
{
"name": "CACHE",
"value": "[parameters('cache')]"
},
**parameters.json file**
--------
"parameters": {
"cache": {
"value":"D:\\home\\filevault\\cache"
},
}
It looks like ok your code, just make sure that your parameter are like that, don't forget type as string.
=====params.json=====
According to this error, it seems to be an error regarding [parameters('name')].
I tested it using a simple WebApp
=====deploy.json=====
CACHE was configured ok