title: Azure webapp: Stack settings
body: <p>I can set my stack for a webapp through the portal:
  <a href="https://i.stack.imgur.com/i55uR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/i55uR.png" alt="Stack settings through the portal"></a></p>
  
  <p>I deploy my infra through an ARM template:</p>
  
  <pre><code> "apiVersion": "2015-08-01",
    "type": "Microsoft.Web/sites",
    "name": "[variables('name')]",
    "location": "[parameters('location')]",
    "dependsOn": [
      "[concat(parameters('customer'),'-','webapp-small','-' , 'plan','-',parameters('env'))]"
    ],
    "properties": {
      "clientAffinityEnabled": false,
      "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', concat(parameters('customer'),'-','webapp-small','-' , 'plan','-',parameters('env')))]",
      "siteConfig": {
        "alwaysOn": "[parameters('webAppAlwaysOn')]",
        "use32BitWorkerProcess": true,
        "connectionStrings": [
        ],
        "appSettings": [
          {
            "name": "WEBSITE_LOAD_CERTIFICATES",
            "value": "[reference(variables('name')).thumbprint]"
          },
          {
            "name": "WEBSITE_RUN_FROM_PACKAGE",
            "value": 0
          },
          {
            "name": "WEBSITE_ADD_SITENAME_BINDINGS_IN_APPHOST_CONFIG",
            "value": 1
          },
          {
            "name": "ASPNETCORE_ENVIRONMENT",
            "value": "[parameters('AspNetCoreEnvironment')]"
          },
          {
            "name": "EnvironmentOptions:ResourceGroupPostfix",
            "value": "[parameters('env')]"
          },
          {
            "name": "APPINSIGHTS_INSTRUMENTATIONKEY",
            "value": "[reference(variables('aiWebName')).InstrumentationKey]"
          },
          {
            "name": "IpWhiteList",
            "value": "[parameters('whitelist')]"
          }
        ]
      }
    }
  }
  </code></pre>
  
  <p>The code deployed to this is a .NET Core 2.2 app. I can't see any place where i can set the stack settings: <a href="https://docs.microsoft.com/en-us/azure/templates/microsoft.web/2018-11-01/sites" rel="noreferrer">https://docs.microsoft.com/en-us/azure/templates/microsoft.web/2018-11-01/sites</a>, but when i deploy the .NET Core code, everything works. What is the "Stack settings" for? Why can't I set it through ARM? Do I even need to set it? I imagine that the runtime can guess that it is a .NET Core application and then make it work automatically.</p>