Skip to content

Commit

Permalink
Adding ARM template for web app infra
Browse files Browse the repository at this point in the history
  • Loading branch information
colindembovsky committed Sep 5, 2018
1 parent 96de01f commit f7b4ee3
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
40 changes: 40 additions & 0 deletions Scripts/WebAppInfrastructure.json
@@ -0,0 +1,40 @@
{
"$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": "[parameters('hostingPlanName')]",
"type": "Microsoft.Web/serverfarms",
"location": "[resourceGroup().location]",
"properties": {
"name": "[parameters('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": "[parameters('location')]",
"dependsOn": [
"[concat('Microsoft.Web/serverfarms/', variables('hostingPlanName'))]"
]
}
]
}
1 change: 1 addition & 0 deletions WebApp.sln
Expand Up @@ -17,6 +17,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
Scripts\selenium.local.runsettings = Scripts\selenium.local.runsettings
Scripts\selenium.release.runsettings = Scripts\selenium.release.runsettings
Scripts\VSTS-Selenium-ACI.release.yaml = Scripts\VSTS-Selenium-ACI.release.yaml
Scripts\WebAppInfrastructure.json = Scripts\WebAppInfrastructure.json
EndProjectSection
EndProject
Global
Expand Down

0 comments on commit f7b4ee3

Please sign in to comment.