Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

Commit

Permalink
Added dependency to SA job creation for the Website resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Bloch committed Jul 26, 2016
1 parent 5ee2ef7 commit 8f8bc26
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Azure/ARMTemplate/azuredeploy.json
Expand Up @@ -57,6 +57,7 @@
"sbName": "[concat(parameters('solutionName'),'sb')]",
"sbResourceId": "[resourceId('Microsoft.Eventhub/namespaces/authorizationRules', variables('sbName'), variables('sbKeyName'))]",
"saVersion": "2015-10-01",
"saName": [ "concat(parameters('solutionName')", "'alerts')" ],
"webVersion": "2015-04-01",
"webPlanName": "[concat(parameters('solutionName'), 'plan')]",
"webSiteName": "[parameters('solutionName')]",
Expand All @@ -69,7 +70,7 @@
"saCGName": "streamanalyticscg",
"websiteCGName": "websitecg",
"webSku": "Standard",
"webWorkerCount": 2,
"webWorkerCount": 2,
"webWorkerSize": 0
},
"resources": [
Expand Down Expand Up @@ -260,12 +261,13 @@
"type": "Microsoft.Web/sites",
"location": "[variables('location')]",
"apiVersion": "2015-08-01",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('webPlanName'))]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageName'))]",
"[resourceId('Microsoft.Devices/Iothubs', variables('iotHubName'))]",
"[concat('Microsoft.Eventhub/namespaces/', variables('sbName'))]"
],
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('webPlanName'))]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageName'))]",
"[resourceId('Microsoft.Devices/Iothubs', variables('iotHubName'))]",
"[concat('Microsoft.Eventhub/namespaces/', variables('sbName'))]",
"[resourceId('Microsoft.StreamAnalytics/streamingjobs', variables('saName'))]"
],
"tags": {
"[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', variables('webPlanName'))]": "Resource",
"displayName": "DashboardWebApp"
Expand Down

0 comments on commit 8f8bc26

Please sign in to comment.