How to get effective routes for NIC of VMSS

Apurva Pathak 845 Reputation points
2025-10-20T11:08:19.7666667+00:00

Hello community,

Could someone please help me get effective routes for NIC of VMSS. Also, can we get the list effective routes set at NIC/ Subnet in Azure from OS of any VM?

Thanks

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
{count} votes

2 answers

Sort by: Most helpful
  1. Marcin Policht 67,980 Reputation points MVP Volunteer Moderator
    2025-10-20T16:51:51.71+00:00

    AFAIK, this is available for VMSS in the flexible orchestration mode (which essentially would be the same as for Azure VMs) - but not in the uniform...


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


  2. Himanshu Shekhar 1,780 Reputation points Microsoft External Staff Moderator
    2025-10-21T09:40:34.94+00:00

    Hello Apurva Pathak

    The official Azure document on diagnosing VM networking issues and obtaining effective routes using Azure CLI and PowerShell provides step-by-step commands and explanations

    Diagnose a virtual machine routing problem : https://learn.microsoft.com/en-us/azure/virtual-network/diagnose-network-routing-problem

    Create, change, or delete a network interface https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface?tabs=azure-portal

    Also, we recommend to follow the below suggested steps

    Try using az network nic show-effective-route-table --name <NICName> --resource-group <ResourceGroup> to view effective routes for a NIC.

    In VMSS, the NIC name can be identified by listing NICs in the resource group, as they are named per VMSS instance NICs.

    From within the OS of a VMSS instance, you cannot directly list Azure effective routes set at the NIC or subnet level since these routes are managed by Azure fabric and are not pushed into the VM OS routing table. You can only see the standard local OS routing tables which don't reflect Azure user-defined routes or the system routes

    For troubleshooting, use Azure portal under Networking for the VM instance, selecting the VMSS instance NIC and viewing "Effective routes" under HelpCreate, change, or delete a route table : https://learn.microsoft.com/en-us/azure/virtual-network/manage-route-table

    Diagnose a virtual machine routing problem : https://learn.microsoft.com/en-us/azure/virtual-network/diagnose-network-routing-problem

    Diagnose a virtual machine network routing problem using the Azure portal : https://learn.microsoft.com/en-us/azure/network-watcher/diagnose-vm-network-routing-problem.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.