Azure Landing Zones Documentation
Home GitHub Issue Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

6 - Turn off Virtual Network Gateways

You can choose to not deploy Virtual Network Gateways. In order to do that, you need to update the Virtual Network Gateway configuration.

For ExpressRoute Virtual Network Gateways

The steps to follow are:

  1. Make the following settings changes by searching for the keys and updating or removing the values
    Setting TypeParent block(s)KeyActionCountNotes
    linecustom_replacements > names<region>_virtual_network_gateway_express_route_nameDelete (optional)1+<region> is the relevant region (e.g. primary or secondary)
    linecustom_replacements > names<region>_virtual_network_gateway_express_route_public_ip_nameDelete (optional)1+<region> is the relevant region (e.g. primary or secondary)
    linehub_and_spoke_vnet_virtual_networks > virtual_network_gateways > express_route OR virtual_wan_virtual_hubs > virtual_network_gateways > express_routeenabledUpdate setting to false1+There will be two instances for a multi-region deployment

For VPN Virtual Network Gateways

The steps to follow are:

  1. Make the following settings changes by searching for the keys and updating ro removing the values
    Setting TypeParent block(s)KeyActionCountNotes
    linecustom_replacements > names<region>_virtual_network_gateway_vpn_nameDelete (optional)1+<region> is the relevant region (e.g. primary or secondary)
    linecustom_replacements > names<region>_virtual_network_gateway_vpn_public_ip_nameDelete (optional)1+<region> is the relevant region (e.g. primary or secondary)
    linehub_and_spoke_vnet_virtual_networks > virtual_network_gateways > vpn OR virtual_wan_virtual_hubs > virtual_network_gateways > vpnenabledUpdate setting to false1+There will be two instances for a multi-region deployment