Virtual network gateways are used to send network traffic between Azure virtual networks and on-premises locations, or between multiple Azure virtual networks. A virtual network gateway is composed of two or more virtual machines that are deployed to a specific subnet you create called the gateway subnet.