Open terrymandin opened 3 months ago
also looking for this..
@favoretti any updates?
Any updates?
I guess it's not doable in Terraform yet! target_resource_id or resource_id to specify the VNET are not simply working in azurerm_network_watcher_flow_log. We seem to have to use NSG' for now...
Is there an existing issue for this?
Community Note
Description
I am creating a Terraform Azure Verified Module for Flow Logs. We have a requirement to create a flow log as part of the VNet creation. This is supported in the portal:
but not in the provider. Please add this capability.
I believe that the network_security_group_id variable should be renamed to target_resource_id similar to azapi. I confirmed that setting this to a VNet also works. It doesn't have to be just a NSG.
New or Affected Resource(s)/Data Source(s)
azurerm_network_watcher_flow_log
Potential Terraform Configuration
References
No response