In ARM template for Azure Web App, how do you specify the stack settings for the app (.NET, .NET Core, PHP, ...)? I cannot see any field for it.
Thank you
When you create azure webapp on portal, choose Running stack
as .Net Core 3.0(Current)
.
Then click Review+Create
> Download a template for automation
. You will see the ARM template which contain metadata
attribute and the current stack value is dotnetcore
.
{
"apiVersion": "2018-02-01",
"name": "[parameters('name')]",
"type": "Microsoft.Web/sites",
"location": "[parameters('location')]",
"properties": {
"name": "[parameters('name')]",
"siteConfig": {
"appSettings": [],
"metadata": [
{
"name": "CURRENT_STACK",
"value": "[parameters('currentStack')]"
}
]
},
// redacted some values
}
}