From 80eccf16381262e78c9061db1a6c5b60a2501e5a Mon Sep 17 00:00:00 2001 From: Zach Trocinski Date: Mon, 23 Sep 2024 21:00:30 -0500 Subject: [PATCH] Add condition for ddos output --- .../bicep/modules/vwanConnectivity/vwanConnectivity.bicep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep b/infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep index ef8ff1baa..fbe880f37 100644 --- a/infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep +++ b/infra-as-code/bicep/modules/vwanConnectivity/vwanConnectivity.bicep @@ -618,7 +618,7 @@ output outVirtualHubId array = [for (hub, i) in parVirtualWanHubs: { }] // Output DDoS Plan ID -output outDdosPlanResourceId string = resDdosProtectionPlan.id +output outDdosPlanResourceId string = parDdosEnabled ? resDdosProtectionPlan.id : '' // Output Private DNS Zones output outPrivateDnsZones array = (parPrivateDnsZonesEnabled ? modPrivateDnsZones.outputs.outPrivateDnsZones : [])