You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deployed Launchpad
Deployed Foundations
Attempted to deploy level 200-single-region-hub scenario
rover -lz /tf/caf/landingzones/caf_networking
-level level2
-var-folder /tf/caf/landingzones/caf_networking/scenario/200-single-region-hub
-a plan
Multiple errors all related to diagnostic definitions
Error: Error in function call
on /home/vscode/.terraform.cache/modules/networking/modules/diagnostics/module.tf line 8, in resource "azurerm_monitor_diagnostic_setting" "diagnostics":
8: name = try(format("%s%s", try(var.global_settings.prefix_with_hyphen, ""), each.value.name), format("%s%s", try(var.global_settings.prefix_with_hyphen, ""), var.diagnostics.diagnostics_definition[each.value.definition_key].name))
|----------------
| each.value is object with 3 attributes
| each.value.definition_key is "network_security_group"
| var.diagnostics.diagnostics_definition is object with 3 attributes
| var.global_settings is object with no attributes
Call to function "try" failed: no expression succeeded:
Unsupported attribute (at
/home/vscode/.terraform.cache/modules/networking/modules/diagnostics/module.tf:8,102-107)
This object does not have an attribute named "name".
Invalid index (at
/home/vscode/.terraform.cache/modules/networking/modules/diagnostics/module.tf:8,212-239)
The given key does not identify an element in this collection value.
At least one expression must produce a successful result.
Expected behavior
Example scenario should work
The text was updated successfully, but these errors were encountered:
Level 200-single-region-hub - Fails when deploying diagnostic settings.
Steps to Reproduce.
Following Getting Started Documents:
https://github.com/Azure/caf-terraform-landingzones/blob/master/documentation/getting_started/getting_started.md
Deployed Launchpad
Deployed Foundations
Attempted to deploy level 200-single-region-hub scenario
rover -lz /tf/caf/landingzones/caf_networking
-level level2
-var-folder /tf/caf/landingzones/caf_networking/scenario/200-single-region-hub
-a plan
Multiple errors all related to diagnostic definitions
Error: Error in function call
on /home/vscode/.terraform.cache/modules/networking/modules/diagnostics/module.tf line 8, in resource "azurerm_monitor_diagnostic_setting" "diagnostics":
8: name = try(format("%s%s", try(var.global_settings.prefix_with_hyphen, ""), each.value.name), format("%s%s", try(var.global_settings.prefix_with_hyphen, ""), var.diagnostics.diagnostics_definition[each.value.definition_key].name))
|----------------
| each.value is object with 3 attributes
| each.value.definition_key is "network_security_group"
| var.diagnostics.diagnostics_definition is object with 3 attributes
| var.global_settings is object with no attributes
Call to function "try" failed: no expression succeeded:
/home/vscode/.terraform.cache/modules/networking/modules/diagnostics/module.tf:8,102-107)
This object does not have an attribute named "name".
/home/vscode/.terraform.cache/modules/networking/modules/diagnostics/module.tf:8,212-239)
The given key does not identify an element in this collection value.
At least one expression must produce a successful result.
Expected behavior
Example scenario should work
The text was updated successfully, but these errors were encountered: