You have an Azure subscription that contains a virtual network named VNet1. Vnet1 contains three subnets named Subnet1, Subnet2, and Subnet3.

You deploy a virtual machine that has the following settings:

• Name:VM1
• Subnet: Subnet2
• Network interface name: NIC1
• Operating system: Windows Server 2022

You need to ensure that VM1 can route traffic between Subnet1 and Subnet3. The solution must minimize administrative effort.

What should you do?