aztfmod / terraform-azurerm-caf-virtual-network

Azure Virtual Network module for Cloud Adoption Framework for Azure landing zones

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail to create Virtual Network if Event Hub not enabled for caf_diagnostics_logging >1.0.0

arnaudlh opened this issue · comments

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.

Closing as fixed in #9