@@ -454,12 +454,15 @@ module queryStorageAccount 'modules/_deployment-scripts/_ds-query-storage-accoun
454
454
}
455
455
456
456
// To void space overlap with AKS Vnet, must deploy the Applciation Gateway VNet before AKS deployment.
457
- module vnetForAppgatewayDeployment 'modules/_azure-resoruces/_vnetAppGateway.bicep' = if (enableAppGWIngress && ( appGatewayCertificateOption != const_appGatewaySSLCertOptionHaveKeyVault ) ) {
457
+ module vnetForAppgatewayDeployment 'modules/_azure-resoruces/_vnetAppGateway.bicep' = if (enableAppGWIngress ) {
458
458
name : 'vnet-application-gateway'
459
459
params : {
460
460
location : location
461
461
vnetForApplicationGateway : vnetForApplicationGateway
462
462
}
463
+ dependsOn : [
464
+ validateInputs
465
+ ]
463
466
}
464
467
465
468
module wlsDomainDeployment 'modules/setupWebLogicCluster.bicep' = if (!enableCustomSSL ) {
@@ -524,6 +527,7 @@ module wlsDomainDeployment 'modules/setupWebLogicCluster.bicep' = if (!enableCus
524
527
dependsOn : [
525
528
validateInputs
526
529
queryStorageAccount
530
+ vnetForAppgatewayDeployment
527
531
]
528
532
}
529
533
@@ -589,6 +593,7 @@ module wlsDomainWithCustomSSLDeployment 'modules/setupWebLogicCluster.bicep' = i
589
593
dependsOn : [
590
594
wlsSSLCertSecretsDeployment
591
595
queryStorageAccount
596
+ vnetForAppgatewayDeployment
592
597
]
593
598
}
594
599
@@ -641,7 +646,7 @@ module networkingDeployment 'modules/networking.bicep' = if (const_enableNetwork
641
646
aksClusterName : ref_wlsDomainDeployment .outputs .aksClusterName .value
642
647
appGatewayCertificateOption : appGatewayCertificateOption
643
648
appGatewayPublicIPAddressName : appGatewayPublicIPAddressName
644
- appGatewaySubnetId : vnetForAppgatewayDeployment .outputs .subIdForApplicationGateway
649
+ appGatewaySubnetId : enableAppGWIngress ? vnetForAppgatewayDeployment .outputs .subIdForApplicationGateway : ''
645
650
appGatewaySubnetStartAddress :vnetForApplicationGateway .subnets .gatewaySubnet .startAddress
646
651
appgwForAdminServer : appgwForAdminServer
647
652
appgwForRemoteConsole : appgwForRemoteConsole
0 commit comments