title: Set ARM Template Web appSetting
body: <p>How can I use ARM to deploy applicationsettings to a website?</p>
  
  <hr>
  
  <p>1
  When running the following in VS ARM Deploy json:</p>
  
  <pre><code>....
       "resources": [
      {
        "apiVersion": "2015-08-01",
        "name": "[variables('hostingPlanName')]",
        "type": "Microsoft.Web/serverfarms",
        "location": "[resourceGroup().location]",
        "tags": {
          "displayName": "HostingPlan"
        },
        "sku": {
          "name": "[variables('skuName')]",
          "capacity": "[variables('skuCapacity')]"
        },
        "properties": {
          "name": "[variables('hostingPlanName')]"
        }
      },
      {
        "apiVersion": "2015-08-01",
        "name": "[variables('webSiteName')]",
        "type": "Microsoft.Web/sites",
        "location": "[resourceGroup().location]",
        "dependsOn": [
          "[concat('Microsoft.Web/serverFarms/', variables('hostingPlanName'))]"
        ],
        "tags": {
          "[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', variables('hostingPlanName'))]": "empty",
          "displayName": "Website"
        },
        "properties": {
          "name": "[variables('webSiteName')]",
          "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('hostingPlanName'))]"
        },
        "resources": [
          {
            "apiVersion": "2015-08-01",
            "name": "web",
            "type": "config",
            "dependsOn": [
              "[concat('Microsoft.Web/Sites/', variables('webSiteName'))]"
            ],
            "properties": {
              "netFrameworkVersion": "4.5.2",
              "use32BitWorkerProcess": true,
              "webSocketsEnabled": false,
              "alwaysOn": false,
              "requestTracingEnabled": true,
              "httpLoggingEnabled": true,
              "logsDirectorySizeLimit": 40,
              "detailedErrorLoggingEnabled": true,
              "appSettings": [
                {
                  "name": "testn",
                  "value": "testv"
                }
              ],
              "connectionstrings": [
                {
                  "name": "testn",
                  "value": "testv",
                  "type": "SQLServer"
                }
              ]
            }
          }
        ]
      }
    ],
  </code></pre>
  
  <p>Output is;</p>
  
  <pre><code>VERBOSE: Performing the operation "Creating Deployment" on target "testdeploy3".
  VERBOSE: 4:44:42 PM - Template is valid.
  ...
  VERBOSE: 4:45:17 PM - Resource Microsoft.Web/sites/config 'testwebadtzmdritygpo/web' provisioning status is succeeded
  
  ...
  ProvisioningState       : Succeeded
  </code></pre>
  
  <p>Double checking in the Portal shows appsettings and connectionstrings have NOT been created</p>
  
  <p>Question 1: How do I query with PowerShell a website's config properties?</p>
  
  <p>Question 2: How can I use ARM to deploy applicationsettings to a website?</p>