From 8648894060b5dd3c0a08cbb33757302434ad4836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20DELMONT?= Date: Mon, 8 Jul 2024 10:50:31 +0200 Subject: [PATCH] add specifics app settings on app service slot --- .../configuration.tfvars | 9 ++++----- modules/webapps/appservice/slot.tf | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/examples/cognitive_services/101-cognitive-services-account-managed-identity/configuration.tfvars b/examples/cognitive_services/101-cognitive-services-account-managed-identity/configuration.tfvars index 62c98ec3e1..1202e54c28 100644 --- a/examples/cognitive_services/101-cognitive-services-account-managed-identity/configuration.tfvars +++ b/examples/cognitive_services/101-cognitive-services-account-managed-identity/configuration.tfvars @@ -27,14 +27,14 @@ cognitive_services_account = { # lz_key = "examples" key = "test-rg" } - name = "cs-test-1" - kind = "OpenAI" - sku_name = "S0" + name = "cs-test-1" + kind = "OpenAI" + sku_name = "S0" public_network_access_enabled = true identity = { type = "SystemAssigned, UserAssigned" // Can be "SystemAssigned, UserAssigned" or "SystemAssigned" or "UserAssigned" - key = "cognitive_msi" // A must with "SystemAssigned, UserAssigned" and "UserAssigned" + key = "cognitive_msi" // A must with "SystemAssigned, UserAssigned" and "UserAssigned" } tags = { @@ -68,4 +68,3 @@ cognitive_services_account = { } } - diff --git a/modules/webapps/appservice/slot.tf b/modules/webapps/appservice/slot.tf index c737549e3b..0933935390 100644 --- a/modules/webapps/appservice/slot.tf +++ b/modules/webapps/appservice/slot.tf @@ -93,7 +93,7 @@ resource "azurerm_app_service_slot" "slots" { } } - app_settings = var.app_settings + app_settings = each.value.app_settings dynamic "connection_string" { for_each = var.connection_strings