Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ARM Template for Web App for Containers (Windows)
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
"type": "string",
"metadata": {
"description": "The name of the function app that you wish to create."
}
}
},
"variables": {
"servicePlanName": "[concat(parameters('siteName'), '-ServicePlan')]"
},
"resources": [
{
"apiVersion": "2016-09-01",
"type": "Microsoft.Web/serverfarms",
"kind": "xenon",
"name": "[variables('servicePlanName')]",
"location": "[resourceGroup().location]",
"properties": {
"name": "[variables('servicePlanName')]",
"isXenon": true,
"numberOfWorkers": "1"
},
"dependsOn": [],
"sku": {
"Tier": "PremiumContainer",
"Name": "PC2"
}
},
{
"apiVersion": "2016-08-01",
"type": "Microsoft.Web/sites",
"name": "[parameters('siteName')]",
"location": "[resourceGroup().location]",
"properties": {
"siteConfig": {
"name": "[parameters('siteName')]",
"appSettings": [
{
"name": "WEBSITES_ENABLE_APP_SERVICE_STORAGE",
"value": "false"
}
],
"windowsFxVersion": "DOCKER|microsoft/iis"
},
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('servicePlanName'))]"
},
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('servicePlanName'))]"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.