Hello,
I am new to Azure, pls don't get upset if I am doing/asking something silly.
In order to understand how user defined routing work in Azure, I have created below resources:
In my subscription
Virtual machine VM1 in Vnet1 and VM3 in Vnet3
Both Vnet1 and Vnet3 are peered so ping works between VM1 and VM3.
Also created one routing table
In another subscription where I have been granted Contributor Access
Virtual machine VM4 in Vnet4
No peering is configured to and from Vnet4
I want to route my connection from VM3 to VM1 - it should come via VM4. While creating a new route I have provided:
Address space of Vnet1 under Address prefix
Selected Virtual Appliance under Next hop type (I know I just have VM, not NPA as such, I hope it would work and I have enabled IP forwarding from NIC of VM4. )
Then provided the public IP of VM4 under next hop address (it's static and standard tier) and saved the changes.
Ran Tracert and found routing is not working as expected. I can some other option to select from while creating routes like virtual network and internet but I don't know how routing will work those options.
Pls help me understand how to make it work. Thank you!!