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