From f7b4ee3c1928f5fca813818f04747816562501c9 Mon Sep 17 00:00:00 2001 From: Colin Dembovsky Date: Wed, 5 Sep 2018 09:52:24 -0700 Subject: [PATCH] Adding ARM template for web app infra --- Scripts/WebAppInfrastructure.json | 40 +++++++++++++++++++++++++++++++ WebApp.sln | 1 + 2 files changed, 41 insertions(+) create mode 100644 Scripts/WebAppInfrastructure.json diff --git a/Scripts/WebAppInfrastructure.json b/Scripts/WebAppInfrastructure.json new file mode 100644 index 0000000..372e818 --- /dev/null +++ b/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'))]" + ] + } + ] +} \ No newline at end of file diff --git a/WebApp.sln b/WebApp.sln index 3310402..031dfea 100644 --- a/WebApp.sln +++ b/WebApp.sln @@ -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