diff --git a/infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep b/infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep index c3f4bb755..e6e10cb7d 100644 --- a/infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep +++ b/infra-as-code/bicep/modules/hubNetworking/hubNetworking.bicep @@ -571,7 +571,7 @@ module modGatewayPublicIp '../publicIp/publicIp.bicep' = [for (gateway, i) in va name: 'deploy-Gateway-Public-IP-${i}' params: { parLocation: parLocation - parAvailabilityZones: gateway.gatewayType == 'ExpressRoute' ? parAzErGatewayAvailabilityZones : gateway.gatewayType == 'Vpn' ? parAzVpnGatewayAvailabilityZones : [] + parAvailabilityZones: toLower(gateway.gatewayType) == 'expressroute' ? parAzErGatewayAvailabilityZones : toLower(gateway.gatewayType) == 'vpn' ? parAzVpnGatewayAvailabilityZones : [] parPublicIpName: '${parPublicIpPrefix}${gateway.name}${parPublicIpSuffix}' parPublicIpProperties: { publicIpAddressVersion: 'IPv4' @@ -597,13 +597,13 @@ resource resGateway 'Microsoft.Network/virtualNetworkGateways@2023-02-01' = [for enableDnsForwarding: gateway.enableDnsForwarding bgpSettings: (gateway.enableBgp) ? gateway.bgpSettings : null gatewayType: gateway.gatewayType - vpnGatewayGeneration: (gateway.gatewayType == 'VPN') ? gateway.generation : 'None' + vpnGatewayGeneration: (toLower(gateway.gatewayType) == 'vpn') ? gateway.generation : 'None' vpnType: gateway.vpnType sku: { name: gateway.sku tier: gateway.sku } - vpnClientConfiguration: (gateway.gatewayType == 'VPN') ? { + vpnClientConfiguration: (toLower(gateway.gatewayType) == 'vpn') ? { vpnClientAddressPool: contains(gateway.vpnClientConfiguration, 'vpnClientAddressPool') ? gateway.vpnClientConfiguration.vpnClientAddressPool : '' vpnClientProtocols: contains(gateway.vpnClientConfiguration, 'vpnClientProtocols') ? gateway.vpnClientConfiguration.vpnClientProtocols : '' vpnAuthenticationTypes: contains(gateway.vpnClientConfiguration, 'vpnAuthenticationTypes') ? gateway.vpnClientConfiguration.vpnAuthenticationTypes : '' diff --git a/infra-as-code/bicep/modules/hubNetworking/parameters/hubNetworking.parameters.all.json b/infra-as-code/bicep/modules/hubNetworking/parameters/hubNetworking.parameters.all.json index 15c61e4a5..2bad6852f 100644 --- a/infra-as-code/bicep/modules/hubNetworking/parameters/hubNetworking.parameters.all.json +++ b/infra-as-code/bicep/modules/hubNetworking/parameters/hubNetworking.parameters.all.json @@ -192,7 +192,7 @@ "parVpnGatewayConfig": { "value": { "name": "alz-Vpn-Gateway", - "gatewayType": "VPN", + "gatewayType": "Vpn", "sku": "VpnGw1", "vpnType": "RouteBased", "generation": "Generation1",