From e5b78fe9c328c3dd904580bd8e42b961e07b7895 Mon Sep 17 00:00:00 2001 From: Christian Vorhemus Date: Wed, 11 Mar 2020 18:24:26 +0100 Subject: [PATCH] Adopt ARM template --- pipeline/infrastructure/azuredeploy.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pipeline/infrastructure/azuredeploy.json b/pipeline/infrastructure/azuredeploy.json index a5d4751..16a7602 100644 --- a/pipeline/infrastructure/azuredeploy.json +++ b/pipeline/infrastructure/azuredeploy.json @@ -277,7 +277,8 @@ "apiVersion": "2018-11-01", "dependsOn": [ "[resourceId('Microsoft.Web/Sites', variables('functionName'))]", - "[resourceId('microsoft.insights/components', variables('insightsComponent'))]" + "[resourceId('microsoft.insights/components', variables('insightsComponent'))]", + "[resourceId('Microsoft.CognitiveServices/accounts', variables('ocrName'))]" ], "tags": { "displayName": "appsettings" @@ -290,7 +291,9 @@ "FUNCTIONS_WORKER_RUNTIME": "node", "FUNCTIONS_EXTENSION_VERSION": "~3", "WEBSITE_NODE_DEFAULT_VERSION": "~10", - "FunctionHostKey": "[listkeys(concat(resourceId('Microsoft.Web/Sites', variables('functionName')), '/host/default/'),'2019-08-01').functionKeys.default]" + "FunctionHostKey": "[listkeys(concat(resourceId('Microsoft.Web/Sites', variables('functionName')), '/host/default/'),'2019-08-01').functionKeys.default]", + "CognitiveServiceKey": "[listkeys(concat(resourceId('Microsoft.CognitiveServices/accounts', variables('ocrName'))),'2017-04-18').key1]", + "CognitiveServiceName": "[variables('ocrName')]" } } ] @@ -301,7 +304,7 @@ "name": "[variables('ocrName')]", "location": "westeurope", "sku": { - "name": "F0" + "name": "S1" }, "kind": "ComputerVision", "properties": {