Skip to content

Instantly share code, notes, and snippets.

@morsh
Created March 6, 2016 14:09
Show Gist options
  • Save morsh/9b4387869517239586ee to your computer and use it in GitHub Desktop.
Save morsh/9b4387869517239586ee to your computer and use it in GitHub Desktop.
ARM CI - Source Control
{
"$schema": "http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {...},
"resources": [
{
"apiVersion": "2015-04-01",
"name": "[parameters('hostingPlanName')]",
"type": "Microsoft.Web/serverfarms",
"location": "[parameters('siteLocation')]",
"properties": {
"name": "[parameters('hostingPlanName')]",
"sku": "[parameters('sku')]",
"workerSize": "[parameters('workerSize')]",
"numberOfWorkers": 1
}
},
{
"apiVersion": "2015-04-01",
"name": "[parameters('queryIDSiteName')]",
"type": "Microsoft.Web/sites",
"location": "[parameters('siteLocation')]",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', parameters('hostingPlanName'))]"
],
"properties": {
"serverFarmId": "[parameters('hostingPlanName')]"
},
"resources": [
{
"apiVersion": "2015-04-01",
"name": "web",
"type": "sourcecontrols",
"dependsOn": [
"[resourceId('Microsoft.Web/Sites', parameters('queryIDSiteName'))]"
],
"properties": {
"RepoUrl": "https://github.com/morsh/azure-web-job-sample.git",
"branch": "master",
"IsManualIntegration": false
}
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment