Skip to content

Instantly share code, notes, and snippets.

@shibayan
Created August 19, 2018 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shibayan/c6db9ae06d9279b73bf3916a194269c0 to your computer and use it in GitHub Desktop.
Save shibayan/c6db9ae06d9279b73bf3916a194269c0 to your computer and use it in GitHub Desktop.
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