Skip to content

Commit

Permalink
Fixed APIM deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
cmendible authored Apr 2, 2024
1 parent 142459a commit 40bda4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 40bda4e

Please sign in to comment.