Hello @Rijo Joy ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you have a hybrid network setup with site-to-site VPN connection between Azure and on-premises and the Azure network has a hub and spoke topology. You have setup the route tables for the traffic routing from your on-premises to the spoke Vnet, but it is not working and you are unable to RDP into the spoke VM from your on-premises machine.
This setup is documented in the below article:
Refer: https://learn.microsoft.com/en-us/azure/firewall/tutorial-hybrid-portal-policy
Please validate the Prerequisites section below,
- You need to make sure that the Vnet peering between the hub Vnet and Spoke Vnet has "Gateway Transit" enabled.
- To route all spoke Vnet traffic to the Azure Firewall, you need a UDR on the spoke Vnet subnets with destination 0.0.0.0/0 pointing to next hop Azure Firewall with Virtual network gateway route propagation option disabled.
- And a UDR on the hub gateway subnet with destination as the spoke Vnet address space pointing to the next hop Azure Firewall IP address.
- Lastly, you also need to configure network rule within the Azure Firewall to allow RDP traffic to the spoke Vnet, where source should be your on-premises network as below:
- Name, type AllowRDP.
- For Source type, select IP address.
- For Source, type the address space of your on-premises network.
- For Protocol, select TCP.
- For Destination Ports, type 3389.
- For Destination type, select IP address.
- For Destination, type the address space of your spoke Vnet
- Select Add.
Please validate if all the above configurations have been added correctly to your setup.
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.