Permalink
Switch branches/tags
Nothing to show
Find file Copy path
630f09c Sep 5, 2018
1 contributor

Users who have contributed to this file

40 lines (40 sloc) 1.02 KB
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"name": {
"type": "string"
}
},
"variables": {
"hostingPlanName": "[concat(parameters('name'), '-plan')]"
},
"resources": [
{
"apiVersion": "2016-09-01",
"name": "[variables('hostingPlanName')]",
"type": "Microsoft.Web/serverfarms",
"location": "[resourceGroup().location]",
"properties": {
"name": "[variables('hostingPlanName')]"
},
"sku": {
"Tier": "Free",
"Name": "F1"
}
},
{
"apiVersion": "2016-03-01",
"name": "[parameters('name')]",
"type": "Microsoft.Web/sites",
"properties": {
"name": "[parameters('name')]",
"serverFarmId": "[variables('hostingPlanName')]"
},
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Web/serverfarms/', variables('hostingPlanName'))]"
]
}
]
}