diff --git a/infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep b/infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep index 71f662e81..491583e9a 100644 --- a/infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep +++ b/infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep @@ -319,7 +319,7 @@ resource resDdosProtectionPlan 'Microsoft.Network/ddosProtectionPlans@2023-02-01 tags: parTags } -resource resHubVnet 'Microsoft.Network/virtualNetworks@2023-02-01' = if (parAzBastionEnabled) { +resource resHubVnet 'Microsoft.Network/virtualNetworks@2023-02-01' = { dependsOn: [ resBastionNsg ]