Reputation: 389
I have this Vnet and subnet and I created a route table and associated it to the subnet. However, under Effective routes, it is empty... I also have a VNet Gateway and it has a VPN to on-prem and the gateway is learning BGP routes but they are not listed here. I do have a NIC associated in the subnet as well. The NIC's menu shows all the routes. Why is that? Here is the screenshot of it. The route table is empty here
The route table is associated to this subnet
Here is the NIC in the subnet and it shows all the routes
Thanks! Difan
Upvotes: 0
Views: 3270
Reputation: 5570
I tried to reproduce the same in my environment. Its working fine this issue may cause of required permission and connection fails.
Go to Azure portal -> Your VM -> setting -> click networking -> select your network interface -> click effective routes
Named of effective routes as shown below:
Otherwise try to fix it via PowerShell
To Get the effective route table on a network interface
Get-AzEffectiveRouteTable -NetworkInterfaceName "MyNetworkInterface" -ResourceGroupName "MyResourceGroup
To gets the effective routes for a network interface
Get-AzEffectiveRouteTable `
-NetworkInterfaceName myVMNic1 `
-ResourceGroupName myResourceGroup `
| Format-Table
For your Reference :
az network nic | Microsoft Docs
Upvotes: 0