Fail to create Virtual Network if Event Hub not enabled for caf_diagnostics_logging >1.0.0
arnaudlh opened this issue · comments
Arnaud Lheureux commented
When you deploy caf_foundations without EventHub for diagnostics logging, while trying to create a virtual network with release 0.2, creation of the NSG fails:
Error: Invalid template interpolation value
on .terraform/modules/vnet_test/aztfmod-terraform-azurerm-caf-virtual-network-50f323b/nsg/nsg_diagnostics.tf line 10, in resource "azurerm_monitor_diagnostic_setting" "nsg_diag":
10: eventhub_authorization_rule_id = "${var.diagnostics_map.eh_id}/authorizationrules/RootManageSharedAccessKey"
|----------------
| var.diagnostics_map.eh_id is null
This will be fixed with next release milestone 2001.
Arnaud Lheureux commented
Closing as fixed in #9