From af3d5cec2f7ceaa00f705319863e43f995e561a3 Mon Sep 17 00:00:00 2001 From: Carlos Mendible <266546+cmendible@users.noreply.github.com> Date: Tue, 2 Apr 2024 16:21:35 +0200 Subject: [PATCH] Fixed APIM deployment --- infra/main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/main.tf b/infra/main.tf index 03f67d4..3619340 100644 --- a/infra/main.tf +++ b/infra/main.tf @@ -165,7 +165,7 @@ module "ca_chat" { storage_container_name = module.st.storage_container_name search_service_name = module.search.search_service_name search_index_name = module.search.search_index_name - openai_endpoint = var.enable_apim ? module.apim.gateway_url : module.openai.openai_endpoint + openai_endpoint = var.enable_apim ? module.apim[0].gateway_url : module.openai.openai_endpoint tenant_id = data.azurerm_subscription.current.tenant_id managed_identity_client_id = module.mi.client_id enable_entra_id_authentication = var.enable_entra_id_authentication @@ -210,7 +210,7 @@ module "ca_aihub" { storage_container_name = module.st.storage_container_name search_service_name = module.search.search_service_name search_index_name = module.search.search_index_name - openai_endpoint = var.enable_apim ? module.apim.gateway_url : module.openai.openai_endpoint + openai_endpoint = var.enable_apim ? module.apim[0].gateway_url : module.openai.openai_endpoint chat_fqdn = module.ca_chat.fqdn pbi_report_link = var.pbi_report_link content_safety_endpoint = module.cog.content_safety_endpoint