Skip to content

Commit

Permalink
add specifics app settings on app service slot
Browse files Browse the repository at this point in the history
  • Loading branch information
kevindelmont committed Jul 8, 2024
1 parent 91ab75a commit 8648894
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -68,4 +68,3 @@ cognitive_services_account = {

}
}

2 changes: 1 addition & 1 deletion modules/webapps/appservice/slot.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8648894

Please sign in to comment.