Created
August 19, 2018 16:03
-
-
Save shibayan/c6db9ae06d9279b73bf3916a194269c0 to your computer and use it in GitHub Desktop.
ARM Template for Web App for Containers (Windows)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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