From e23a1b54c144bdd27bd31d0fb977855fb578a115 Mon Sep 17 00:00:00 2001 From: Darrell Bolger Date: Tue, 23 Jan 2024 10:33:34 +0000 Subject: [PATCH] WIP --- modules/cognitive-services/src/main.tf | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/cognitive-services/src/main.tf b/modules/cognitive-services/src/main.tf index 7e809f0..c024194 100644 --- a/modules/cognitive-services/src/main.tf +++ b/modules/cognitive-services/src/main.tf @@ -46,13 +46,21 @@ resource "azurerm_monitor_diagnostic_setting" "main" { log_analytics_workspace_id = var.log_analytics_workspace_id dynamic "enabled_log" { - for_each = var.log_category_groups + for_each = var.log_categories content { category = enabled_log.value } } + dynamic "enabled_log" { + for_each = var.log_category_groups + + content { + category_group = enabled_log.value + } + } + dynamic "metric" { for_each = var.metric_categories