Search code examples
azureazure-rm-template

How to set Azure App Service Stack and Platform via ARM template?


I want to set Azure's App Service Platform and Stack settings with ARM template. What should be added to ARM template to set those values?

I want to be able to set .NET version to .NET Core 3.1 and Platform to x64 or x32.

enter image description here


Solution

  • In the siteConfig block within properties, add the following:

          "metadata": [ 
            { 
              "name": "CURRENT_STACK",
              "value": "dotnetcore" 
            } 
          ],
          "use32BitWorkerProcess": false,