From 3e0b75c8726e653528d6f853599ae9615227c190 Mon Sep 17 00:00:00 2001 From: Chinedum Echeta <60179183+cecheta@users.noreply.github.com> Date: Tue, 4 Jun 2024 12:46:58 +0100 Subject: [PATCH] fix: Fix Machine Learning output on deployment (#1020) --- infra/main.bicep | 62 ++++----- infra/main.json | 318 +++++++++++++++++++++++------------------------ 2 files changed, 191 insertions(+), 189 deletions(-) diff --git a/infra/main.bicep b/infra/main.bicep index b4389a967..9ff5b18a7 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -338,22 +338,22 @@ var defaultOpenAiDeployments = [ var openAiDeployments = concat( defaultOpenAiDeployments, - useAdvancedImageProcessing - ? [ - { - name: azureOpenAIVisionModel - model: { - format: 'OpenAI' - name: azureOpenAIVisionModelName - version: azureOpenAIVisionModelVersion - } - sku: { - name: 'Standard' - capacity: azureOpenAIVisionModelCapacity - } - } - ] - : [] + useAdvancedImageProcessing + ? [ + { + name: azureOpenAIVisionModel + model: { + format: 'OpenAI' + name: azureOpenAIVisionModelName + version: azureOpenAIVisionModelVersion + } + sku: { + name: 'Standard' + capacity: azureOpenAIVisionModelCapacity + } + } + ] + : [] ) module openai 'core/ai/cognitiveservices.bicep' = { @@ -812,8 +812,8 @@ module workbook './app/workbook.bicep' = { functionName: hostingModel == 'container' ? function_docker.outputs.functionName : function.outputs.functionName websiteName: hostingModel == 'container' ? web_docker.outputs.FRONTEND_API_NAME : web.outputs.FRONTEND_API_NAME adminWebsiteName: hostingModel == 'container' - ? adminweb_docker.outputs.WEBSITE_ADMIN_NAME - : adminweb.outputs.WEBSITE_ADMIN_NAME + ? adminweb_docker.outputs.WEBSITE_ADMIN_NAME + : adminweb.outputs.WEBSITE_ADMIN_NAME eventGridSystemTopicName: eventgrid.outputs.name logAnalyticsName: monitoring.outputs.logAnalyticsWorkspaceName azureOpenAIResourceName: openai.outputs.name @@ -972,12 +972,12 @@ module storage 'core/storage/storage-account.bicep' = { sku: { name: 'Standard_GRS' } - deleteRetentionPolicy: azureSearchUseIntegratedVectorization - ? { - enabled: true - days: 7 - } - : {} + deleteRetentionPolicy: azureSearchUseIntegratedVectorization + ? { + enabled: true + days: 7 + } + : {} containers: [ { name: blobContainerName @@ -1115,14 +1115,16 @@ output DOCUMENT_PROCESSING_QUEUE_NAME string = queueName output ORCHESTRATION_STRATEGY string = orchestrationStrategy output USE_KEY_VAULT bool = useKeyVault output FRONTEND_WEBSITE_NAME string = hostingModel == 'code' - ? web.outputs.FRONTEND_API_URI - : web_docker.outputs.FRONTEND_API_URI + ? web.outputs.FRONTEND_API_URI + : web_docker.outputs.FRONTEND_API_URI output ADMIN_WEBSITE_NAME string = hostingModel == 'code' - ? adminweb.outputs.WEBSITE_ADMIN_URI - : adminweb_docker.outputs.WEBSITE_ADMIN_URI + ? adminweb.outputs.WEBSITE_ADMIN_URI + : adminweb_docker.outputs.WEBSITE_ADMIN_URI output LOGLEVEL string = logLevel output CONVERSATION_FLOW string = conversationFlow output USE_ADVANCED_IMAGE_PROCESSING bool = useAdvancedImageProcessing output ADVANCED_IMAGE_PROCESSING_MAX_IMAGES int = advancedImageProcessingMaxImages -output AZURE_ML_WORKSPACE_NAME string = machineLearning.outputs.workspaceName -output RESOURCE_TOKEN string = resourceToken \ No newline at end of file +output AZURE_ML_WORKSPACE_NAME string = orchestrationStrategy == 'prompt_flow' + ? machineLearning.outputs.workspaceName + : '' +output RESOURCE_TOKEN string = resourceToken diff --git a/infra/main.json b/infra/main.json index d4f06c25e..19c5040a5 100644 --- a/infra/main.json +++ b/infra/main.json @@ -4,8 +4,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "17385484165795481291" + "version": "0.27.1.19265", + "templateHash": "15258388180861212685" } }, "parameters": { @@ -645,8 +645,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "18288317658862179612" + "version": "0.27.1.19265", + "templateHash": "10946574055690902625" }, "description": "Creates an Azure Key Vault." }, @@ -742,8 +742,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "13527459553853816943" + "version": "0.27.1.19265", + "templateHash": "12902207048115971201" }, "description": "Creates an Azure Cognitive Services instance." }, @@ -899,8 +899,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "13527459553853816943" + "version": "0.27.1.19265", + "templateHash": "12902207048115971201" }, "description": "Creates an Azure Cognitive Services instance." }, @@ -1048,8 +1048,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -1119,8 +1119,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -1190,8 +1190,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -1261,8 +1261,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -1336,8 +1336,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "13527459553853816943" + "version": "0.27.1.19265", + "templateHash": "12902207048115971201" }, "description": "Creates an Azure Cognitive Services instance." }, @@ -1501,8 +1501,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "16225298272147969349" + "version": "0.27.1.19265", + "templateHash": "2723102221602621788" } }, "parameters": { @@ -1714,8 +1714,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "6777557730842559074" + "version": "0.27.1.19265", + "templateHash": "109530586617035708" }, "description": "Creates an Azure AI Search instance." }, @@ -1883,8 +1883,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "6658410551007142152" + "version": "0.27.1.19265", + "templateHash": "3882056790487836425" }, "description": "Creates an Azure App Service plan." }, @@ -2063,8 +2063,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "15498035769847489288" + "version": "0.27.1.19265", + "templateHash": "3523301306282440498" } }, "parameters": { @@ -2241,8 +2241,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2853975730522685185" + "version": "0.27.1.19265", + "templateHash": "13528682982724980465" }, "description": "Creates an Azure App Service in an existing Azure App Service plan." }, @@ -2468,8 +2468,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "16186931945900992707" + "version": "0.27.1.19265", + "templateHash": "9730065891606131364" }, "description": "Updates app settings for an Azure App Service." }, @@ -2546,8 +2546,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -2615,8 +2615,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -2684,8 +2684,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -2753,8 +2753,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -2819,8 +2819,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "5336116590814097384" + "version": "0.27.1.19265", + "templateHash": "6278079210023281106" }, "description": "Assigns an Azure Key Vault access policy." }, @@ -3017,8 +3017,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "15498035769847489288" + "version": "0.27.1.19265", + "templateHash": "3523301306282440498" } }, "parameters": { @@ -3195,8 +3195,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2853975730522685185" + "version": "0.27.1.19265", + "templateHash": "13528682982724980465" }, "description": "Creates an Azure App Service in an existing Azure App Service plan." }, @@ -3422,8 +3422,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "16186931945900992707" + "version": "0.27.1.19265", + "templateHash": "9730065891606131364" }, "description": "Updates app settings for an Azure App Service." }, @@ -3500,8 +3500,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -3569,8 +3569,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -3638,8 +3638,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -3707,8 +3707,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -3773,8 +3773,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "5336116590814097384" + "version": "0.27.1.19265", + "templateHash": "6278079210023281106" }, "description": "Assigns an Azure Key Vault access policy." }, @@ -3970,8 +3970,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "3807551112726378511" + "version": "0.27.1.19265", + "templateHash": "9122829587959554559" } }, "parameters": { @@ -4141,8 +4141,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2853975730522685185" + "version": "0.27.1.19265", + "templateHash": "13528682982724980465" }, "description": "Creates an Azure App Service in an existing Azure App Service plan." }, @@ -4368,8 +4368,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "16186931945900992707" + "version": "0.27.1.19265", + "templateHash": "9730065891606131364" }, "description": "Updates app settings for an Azure App Service." }, @@ -4446,8 +4446,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -4515,8 +4515,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -4584,8 +4584,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -4653,8 +4653,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -4719,8 +4719,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "5336116590814097384" + "version": "0.27.1.19265", + "templateHash": "6278079210023281106" }, "description": "Assigns an Azure Key Vault access policy." }, @@ -4913,8 +4913,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "3807551112726378511" + "version": "0.27.1.19265", + "templateHash": "9122829587959554559" } }, "parameters": { @@ -5084,8 +5084,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2853975730522685185" + "version": "0.27.1.19265", + "templateHash": "13528682982724980465" }, "description": "Creates an Azure App Service in an existing Azure App Service plan." }, @@ -5311,8 +5311,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "16186931945900992707" + "version": "0.27.1.19265", + "templateHash": "9730065891606131364" }, "description": "Updates app settings for an Azure App Service." }, @@ -5389,8 +5389,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -5458,8 +5458,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -5527,8 +5527,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -5596,8 +5596,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -5662,8 +5662,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "5336116590814097384" + "version": "0.27.1.19265", + "templateHash": "6278079210023281106" }, "description": "Assigns an Azure Key Vault access policy." }, @@ -5777,8 +5777,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "1447821869691449548" + "version": "0.27.1.19265", + "templateHash": "13065021834937678877" }, "description": "Creates an Application Insights instance and a Log Analytics workspace." }, @@ -5829,8 +5829,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "7303134511679605290" + "version": "0.27.1.19265", + "templateHash": "2707024492396982954" }, "description": "Creates a Log Analytics workspace." }, @@ -5910,8 +5910,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "7876824876150965509" + "version": "0.27.1.19265", + "templateHash": "6684811037284796150" }, "description": "Creates an Application Insights instance based on an existing Log Analytics workspace." }, @@ -5975,8 +5975,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "17844342106049583039" + "version": "0.27.1.19265", + "templateHash": "1759216242890853910" }, "description": "Creates a dashboard for an Application Insights instance." }, @@ -7314,8 +7314,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "11939728038427453906" + "version": "0.27.1.19265", + "templateHash": "5649433306021197168" } }, "parameters": { @@ -7397,8 +7397,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "5276699956994257721" + "version": "0.27.1.19265", + "templateHash": "2792566012892132891" } }, "parameters": { @@ -7583,8 +7583,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "12007300634992115174" + "version": "0.27.1.19265", + "templateHash": "14690928021789276012" } }, "parameters": { @@ -7772,8 +7772,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "18381130642630574187" + "version": "0.27.1.19265", + "templateHash": "4546396046228166655" }, "description": "Creates an Azure Function in an existing Azure App Service plan." }, @@ -7980,8 +7980,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2853975730522685185" + "version": "0.27.1.19265", + "templateHash": "13528682982724980465" }, "description": "Creates an Azure App Service in an existing Azure App Service plan." }, @@ -8207,8 +8207,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "16186931945900992707" + "version": "0.27.1.19265", + "templateHash": "9730065891606131364" }, "description": "Updates app settings for an Azure App Service." }, @@ -8303,8 +8303,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -8372,8 +8372,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -8441,8 +8441,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -8510,8 +8510,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -8579,8 +8579,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -8645,8 +8645,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "5336116590814097384" + "version": "0.27.1.19265", + "templateHash": "6278079210023281106" }, "description": "Assigns an Azure Key Vault access policy." }, @@ -8818,8 +8818,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "12007300634992115174" + "version": "0.27.1.19265", + "templateHash": "14690928021789276012" } }, "parameters": { @@ -9007,8 +9007,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "18381130642630574187" + "version": "0.27.1.19265", + "templateHash": "4546396046228166655" }, "description": "Creates an Azure Function in an existing Azure App Service plan." }, @@ -9215,8 +9215,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2853975730522685185" + "version": "0.27.1.19265", + "templateHash": "13528682982724980465" }, "description": "Creates an Azure App Service in an existing Azure App Service plan." }, @@ -9442,8 +9442,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "16186931945900992707" + "version": "0.27.1.19265", + "templateHash": "9730065891606131364" }, "description": "Updates app settings for an Azure App Service." }, @@ -9538,8 +9538,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -9607,8 +9607,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -9676,8 +9676,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -9745,8 +9745,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -9814,8 +9814,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -9880,8 +9880,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "5336116590814097384" + "version": "0.27.1.19265", + "templateHash": "6278079210023281106" }, "description": "Assigns an Azure Key Vault access policy." }, @@ -9986,8 +9986,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "13527459553853816943" + "version": "0.27.1.19265", + "templateHash": "12902207048115971201" }, "description": "Creates an Azure Cognitive Services instance." }, @@ -10137,8 +10137,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "13527459553853816943" + "version": "0.27.1.19265", + "templateHash": "12902207048115971201" }, "description": "Creates an Azure Cognitive Services instance." }, @@ -10291,8 +10291,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2744533571013631143" + "version": "0.27.1.19265", + "templateHash": "7008837948540418623" } }, "parameters": { @@ -10421,8 +10421,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "13099278775051251800" + "version": "0.27.1.19265", + "templateHash": "3554907224314175125" }, "description": "Creates an Azure storage account." }, @@ -10646,8 +10646,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -10716,8 +10716,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -10786,8 +10786,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -10856,8 +10856,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "2184194315885104837" + "version": "0.27.1.19265", + "templateHash": "16440196655390446916" }, "description": "Creates a role assignment for a service principal." }, @@ -10942,8 +10942,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.24.24.22086", - "templateHash": "4649466732744970707" + "version": "0.27.1.19265", + "templateHash": "1703863751305099956" } }, "parameters": { @@ -11291,7 +11291,7 @@ }, "AZURE_ML_WORKSPACE_NAME": { "type": "string", - "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, variables('rgName')), 'Microsoft.Resources/deployments', parameters('azureMachineLearningName')), '2022-09-01').outputs.workspaceName.value]" + "value": "[if(equals(parameters('orchestrationStrategy'), 'prompt_flow'), reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, variables('rgName')), 'Microsoft.Resources/deployments', parameters('azureMachineLearningName')), '2022-09-01').outputs.workspaceName.value, '')]" }, "RESOURCE_TOKEN": { "type": "string",