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 any Virtual Network Gateways. In order to do that, you need to remove the Virtual Network Gateway configuration. You can either comment out or remove the configuration entirely.

For both Virtual Network Gateways

The steps to follow are:

  1. Delete the following settings by searching for the keys and removing the line or block
    Setting TypeParent block(s)KeyActionCountNotes
    linecustom_replacements > names<region>_virtual_network_gateway_express_route_nameDelete1+<region> is the relevant region (e.g. primary or secondary)
    linecustom_replacements > names<region>_virtual_network_gateway_express_route_public_ip_nameDelete1+<region> is the relevant region (e.g. primary or secondary)
    linecustom_replacements > names<region>_virtual_network_gateway_vpn_nameDelete1+<region> is the relevant region (e.g. primary or secondary)
    linecustom_replacements > names<region>_virtual_network_gateway_vpn_public_ip_nameDelete1+<region> is the relevant region (e.g. primary or secondary)
    linecustom_replacements > names<region>_gateway_subnet_address_prefixDelete1+<region> is the relevant region (e.g. primary or secondary)
    blockhub_and_spoke_vnet_virtual_networks OR virtual_wan_virtual_hubsvirtual_network_gatewaysDelete1+There will be two instances for a multi-region deployment

For ExpressRoute Virtual Network Gateways only

The steps to follow are:

  1. Delete the following settings by searching for the keys and removing the line or block
    Setting TypeParent block(s)KeyActionCountNotes
    linecustom_replacements > names<region>_virtual_network_gateway_express_route_nameDelete1+<region> is the relevant region (e.g. primary or secondary)
    linecustom_replacements > names<region>_virtual_network_gateway_express_route_public_ip_nameDelete1+<region> is the relevant region (e.g. primary or secondary)
    blockhub_and_spoke_vnet_virtual_networks > virtual_network_gateways OR virtual_wan_virtual_hubs > virtual_network_gatewaysexpress_routeDelete1+There will be two instances for a multi-region deployment

For VPN Virtual Network Gateways only

The steps to follow are:

  1. Delete the following settings by searching for the keys and removing the line or block
    Setting TypeParent block(s)KeyActionCountNotes
    linecustom_replacements > names<region>_virtual_network_gateway_vpn_nameDelete1+<region> is the relevant region (e.g. primary or secondary)
    linecustom_replacements > names<region>_virtual_network_gateway_vpn_public_ip_nameDelete1+<region> is the relevant region (e.g. primary or secondary)
    blockhub_and_spoke_vnet_virtual_networks > virtual_network_gateways OR virtual_wan_virtual_hubs > virtual_network_gatewaysvpnDelete1+There will be two instances for a multi-region deployment