Open jinkang23 opened 20 hours ago
Hello @acelebanski - I appreciate adding support for DDoS Protection Plan to the VNET module in that least release. After some testing, I've realized that it doesn't really meet our use case due to the lack of support for using DDoS Protection Plan that's hosted in a different Azure subscription. I've opened a bug issue in hope that the module can be tweaked to support accepting The DDoS Protection Plan Id instead.
Describe the bug
Latest release version 3.2.1 for VNET Module added support for DDoS Protection Plan. However, it only supports DDoS Protection Plan resource within the same subscription as the VNET module due to use of
data. azurerm_network_ddos_protection_plan
accepting only theresource_group_name
andname
.In an enterprise environment, it's fairly common practice (at least for us) to re-use single DDoS Protection Plan for multiple VNETs due to the large upfront cost and single plan supporting up to 100 resources. Because of this, DDoS Protection Plan is created in a separate Azure Subscription instead.
I propose that the VNET module interface be updated to accept the DDoS Protection Plan ID instead and remove
data azurerm_network_ddos_protection_plan
.Example:
Module Version
v2.3.1
Terraform version
1.10.0
Expected behavior
Support using DDoS Protection Plan hosted in a different Azure Subscription within the same Azure tenant.
Current behavior
Only supports DDoS Protection Plan hosted in the same Azure subscription as the VNET
Anything else to add?
No response