Difan Zhao
Difan Zhao

Reputation: 389

Azure route table not showing effective routes

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

enter image description here

The route table is associated to this subnet enter image description here

Here is the NIC in the subnet and it shows all the routes enter image description here enter image description here

Thanks! Difan

Upvotes: 0

Views: 3270

Answers (1)

Imran
Imran

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

enter image description here

Named of effective routes as shown below:

enter image description here

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

Related Questions