{ "$schema": "http://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 web app." } }, "hostingPlanName": { "type": "string", "defaultValue": "free", "metadata": { "description": "The name of the App Service plan." } }, "sku": { "type": "string", "allowedValues": [ "F1", "D1", "B1", "B2", "B3", "S1", "S2", "S3", "P1", "P2", "P3", "P4" ], "defaultValue": "S1", "metadata": { "description": "The pricing tier for the hosting plan." } }, "workerSize": { "type": "string", "allowedValues": [ "0", "1", "2" ], "defaultValue": "0", "metadata": { "description": "The instance size of the hosting plan (small, medium, or large)." } }, "repoURL": { "type": "string", "defaultValue": "https://github.com/Azure/SMOMSConnector.git", "metadata": { "description": "The URL for the GitHub repository that contains the project to deploy." } }, "branch": { "type": "string", "defaultValue": "master", "metadata": { "description": "The branch of the GitHub repository to use." } } }, "resources": [ { "apiVersion": "2015-08-01", "name": "[parameters('hostingPlanName')]", "type": "Microsoft.Web/serverfarms", "location": "[resourceGroup().location]", "sku": { "name": "[parameters('sku')]", "capacity": "[parameters('workerSize')]" }, "properties": { "name": "[parameters('hostingPlanName')]" } }, { "apiVersion": "2015-08-01", "name": "[parameters('siteName')]", "type": "Microsoft.Web/sites", "location": "[resourceGroup().location]", "dependsOn": [ "[resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName'))]" ], "properties": { "serverFarmId": "[parameters('hostingPlanName')]" }, "resources": [ { "apiVersion": "2015-08-01", "name": "web", "type": "sourcecontrols", "dependsOn": [ "[resourceId('Microsoft.Web/Sites', parameters('siteName'))]" ], "properties": { "RepoUrl": "[parameters('repoURL')]", "branch": "[parameters('branch')]", "IsManualIntegration": true } } ] } ] }