VNet1 is in the East US region. Its address space is fully allocated: no unused ranges remain for new subnets. VNet1 contains a subnet named GatewaySubnet with a /27 prefix. GatewaySubnet hosts VPNGW1, a route-based VPN gateway with the VpnGw2AZ SKU that provides site-to-site connectivity to branch offices.
You must deploy a new gateway that meets the following requirements:
- Connect VNet1 to an existing ExpressRoute circuit over a private connection.
- VPNGW1 must remain in service.
- Do not create any new virtual networks.
Which deployment should you use for the new gateway?
A private connection to an ExpressRoute circuit requires a virtual network gateway of type ExpressRoute. That gateway goes into the virtual network's GatewaySubnet, and a VPN gateway may share this subnet with it when the two gateways coexist. Deploying the ExpressRoute gateway into the existing GatewaySubnet therefore keeps VPNGW1 running, needs no new subnet, and needs no new virtual network.
- Not correct: A gateway of type ExpressRoute in GatewaySubnet after deleting VPNGW1. Deleting VPNGW1 breaks the branch connectivity, and it is unnecessary because GatewaySubnet can hold both gateways in a coexistence configuration.
- Correct: A gateway of type ExpressRoute in the existing GatewaySubnet. Gateway type ExpressRoute is the type used for private connections over ExpressRoute, and GatewaySubnet can hold a VPN gateway alongside an ExpressRoute gateway when they coexist, so VPNGW1 stays and no new subnet or network is needed.
- Not correct: A gateway of type VPN in the existing GatewaySubnet. Traffic on the ExpressRoute private connection needs a gateway whose type is ExpressRoute, so a VPN-type gateway does not meet this requirement.
- Not correct: A gateway of type ExpressRoute in a new subnet in VNet1. A new subnet needs free address space, which VNet1 does not have; virtual network gateways are placed in the dedicated subnet named GatewaySubnet.
- Not correct: A gateway of type ExpressRoute in a new peered virtual network. This option requires a new virtual network, which the requirements forbid.