Skip to content

Commit

Permalink
Lab 2
Browse files Browse the repository at this point in the history
  • Loading branch information
richeney committed Jul 31, 2018
1 parent 9c5ae72 commit 4afa55a
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
45 changes: 45 additions & 0 deletions lab2/azuredeploy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"webAppName": {
"type": "string"
}
},
"variables": {
"webAppPlan": "[concat(parameters('webAppName'), '-plan')]",
"webAppPlanId": "[resourceId('Microsoft.Web/serverfarms', variables('webAppPlan'))]"
},
"resources": [
{
"apiVersion": "2016-08-01",
"name": "[parameters('webAppName')]",
"type": "Microsoft.Web/sites",
"properties": {
"name": "[parameters('webAppName')]",
"serverFarmId": "[variables('webAppPlanId')]",
"hostingEnvironment": ""
},
"location": "[resourceGroup().location]",
"dependsOn": [
"[variables('webAppPlanId')]"
]
},
{
"apiVersion": "2016-09-01",
"name": "[variables('webAppPlan')]",
"type": "Microsoft.Web/serverfarms",
"location": "[resourceGroup().location]",
"properties": {
"name": "[variables('webAppPlan')]",
"workerSizeId": "0",
"reserved": false,
"numberOfWorkers": "1"
},
"sku": {
"Tier": "Free",
"Name": "F1"
}
}
]
}
9 changes: 9 additions & 0 deletions lab2/azuredeploy.parameters.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"webAppName": {
"value": "richeneyarm"
}
}
}

0 comments on commit 4afa55a

Please sign in to comment.