Skip to content

Commit

Permalink
Setup App Insights for finance worker in ARM
Browse files Browse the repository at this point in the history
  • Loading branch information
nbowes24 committed Jan 22, 2021
1 parent 931f2f4 commit 2f7055d
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions azure/finance.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@
},
"sharedApimName": {
"type": "string"
},
},
"appServiceAllowedIPs": {
"type": "array",
"defaultValue": [
]
"defaultValue": []
},
"sharedEnvVirtualNetworkName": {
"type": "string"
Expand Down Expand Up @@ -110,8 +109,7 @@
"type": "Microsoft.Resources/resourceGroups",
"location": "[parameters('resourceGroupLocation')]",
"tags": "[parameters('tags')]",
"properties": {
}
"properties": {}
},
{
"apiVersion": "2020-06-01",
Expand Down Expand Up @@ -155,6 +153,27 @@
}
}
},
{
"apiVersion": "2020-06-01",
"name": "WorkerAppInsights",
"type": "Microsoft.Resources/deployments",
"resourceGroup": "[variables('resourceGroupName')]",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[concat(variables('deploymentUrlBase'),'application-insights.json')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"appInsightsName": {
"value": "[variables('workerAppServiceName')]"
},
"attachedService": {
"value": "[variables('workerAppServiceName')]"
}
}
}
},
{
"condition": "[greater(length(parameters('uiCustomHostName')), 0)]",
"apiVersion": "2020-06-01",
Expand Down Expand Up @@ -444,6 +463,10 @@
{
"name": "StorageConnectionString",
"value": "[parameters('storageConnectionString')]"
},
{
"name": "InstrumentationKey",
"value": "[reference('WorkerAppInsights').outputs.InstrumentationKey.value]"
}
]
}
Expand Down Expand Up @@ -544,4 +567,4 @@
"value": "[variables('workerAppServiceName')]"
}
}
}
}

0 comments on commit 2f7055d

Please sign in to comment.