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.
The steps to follow are:
- Delete the following settings by searching for the keys and removing the line or block
Setting Type Parent block(s) Key Action Count Notes line custom_replacements
>names
<region>_virtual_network_gateway_express_route_name
Delete 1+ <region>
is the relevant region (e.g.primary
orsecondary
)line custom_replacements
>names
<region>_virtual_network_gateway_express_route_public_ip_name
Delete 1+ <region>
is the relevant region (e.g.primary
orsecondary
)line custom_replacements
>names
<region>_virtual_network_gateway_vpn_name
Delete 1+ <region>
is the relevant region (e.g.primary
orsecondary
)line custom_replacements
>names
<region>_virtual_network_gateway_vpn_public_ip_name
Delete 1+ <region>
is the relevant region (e.g.primary
orsecondary
)line custom_replacements
>names
<region>_gateway_subnet_address_prefix
Delete 1+ <region>
is the relevant region (e.g.primary
orsecondary
)block hub_and_spoke_vnet_virtual_networks
ORvirtual_wan_virtual_hubs
virtual_network_gateways
Delete 1+ There will be two instances for a multi-region deployment
The steps to follow are:
- Delete the following settings by searching for the keys and removing the line or block
Setting Type Parent block(s) Key Action Count Notes line custom_replacements
>names
<region>_virtual_network_gateway_express_route_name
Delete 1+ <region>
is the relevant region (e.g.primary
orsecondary
)line custom_replacements
>names
<region>_virtual_network_gateway_express_route_public_ip_name
Delete 1+ <region>
is the relevant region (e.g.primary
orsecondary
)block hub_and_spoke_vnet_virtual_networks
>virtual_network_gateways
ORvirtual_wan_virtual_hubs
>virtual_network_gateways
express_route
Delete 1+ There will be two instances for a multi-region deployment
The steps to follow are:
- Delete the following settings by searching for the keys and removing the line or block
Setting Type Parent block(s) Key Action Count Notes line custom_replacements
>names
<region>_virtual_network_gateway_vpn_name
Delete 1+ <region>
is the relevant region (e.g.primary
orsecondary
)line custom_replacements
>names
<region>_virtual_network_gateway_vpn_public_ip_name
Delete 1+ <region>
is the relevant region (e.g.primary
orsecondary
)block hub_and_spoke_vnet_virtual_networks
>virtual_network_gateways
ORvirtual_wan_virtual_hubs
>virtual_network_gateways
vpn
Delete 1+ There will be two instances for a multi-region deployment