title: How to conifgure specify sticky slot settings for Azure function using ARM template
body: <p>I have app settings that need to be sticky to deployment slots for Azure Function.</p>
  
  <p>I followed example provided from below posting.</p>
  
  <p><a href="https://stackoverflow.com/questions/45360370/how-to-use-sticky-staging-slots-in-azure-arm-templates">How to use sticky staging slots in Azure Arm Templates</a></p>
  
  <p>However, when the resources are deployed onto resource through VSTS, it keeps failing due to 'conflict' (<a href="https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-common-deployment-errors" rel="noreferrer">https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-common-deployment-errors</a>).</p>
  
  <p>I currently have separate resource templates for "Microsoft.Web/Sites" and "Microsoft.Web/Sites/Config"</p>
  
  <p>App settings are specified under "siteConfig" properties for "Microsoft.Web/Sites" template.</p>
  
  <p>If "appSettingNames" is a type of config, can I list it under siteConfig for "Microsoft.Web/Sites" like below?</p>
  
  <pre><code>    {
          "type": "Microsoft.Web/sites",
          "kind": "functionapp",
          "name": "[parameters('name')]",
          "apiVersion": "2016-08-01",
          "location": "[parameters('location')]",
          "properties": {
              "siteConfig": {
                  "appSettings": "[parameters('appSettings')]",
                  "alwaysOn": true,
                  "appSettingNames": "[parameters('appSettingNames')]"
              }
          },
          "dependsOn": [],
          "resources": []
      }
  </code></pre>
  
  <p>Where as parameter 'appSettingNames' is an array parameter and look like below:
  ["setting1", "setting2", "setting3"].</p>
  
  <p>if there is any example for specifying this configuration.
  it would be really helpful</p>
  
  <p>Thanks</p>