Hello @Rzure99 ,
As I mentioned before, you cannot specify a virtual network gateway created as type ExpressRoute in a user-defined route because with ExpressRoute, you must use BGP for custom routes.
Please refer : https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview
Hence, in order to achieve your current setup requirement, you will have to make use of both UDR and BGP custom routes in one of 2 following ways:
1)
UDR for Internet traffic 0.0.0.0/0 to next hop Firewall in Azure 192.168.1.1.
Advertise BGP custom route for 10.0.0.0/8.
2)
Advertise a route with the 0.0.0.0/0 prefix via BGP over ExpressRoute. (Default routes are permitted only on Azure private peering sessions.)
Add UDR on all subnets with default route 0.0.0.0/0 to next hop Firewall in Azure 192.168.1.1.
The 2nd option relies on how Azure selects a route:
If multiple routes contain the same address prefix, Azure selects the route type, based on the following priority:
- User-defined route
- BGP route
- System route
NOTE: UDR always takes precedence.
Please refer : https://learn.microsoft.com/en-us/azure/expressroute/expressroute-routing#advertising-default-routes
https://learn.microsoft.com/en-us/azure/virtual-network/virtual-networks-udr-overview#how-azure-selects-a-route
Hope this helps!
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.