0

I have a VMSS deployed in a subnet inside VNet. I want to check all the effective routes available on this VMSS for network troubleshooting, but I cannot find any options to view it.

For VMs, one can easily see the Effective Routes on the Network Interface's page in Azure Portal.

Any help would be much appreciated.

Pradeep
  • 1,108
  • 1
  • 15
  • 31

1 Answers1

1

You can achieve this using PowerShell and the Get-AzEffectiveRouteTable cmdlet

$ResourceGroupName = "YourResourceGroup"
$VMMSNicName = "YourVMSSNetworkInterfaceNICName"

$VMSSNic = Get-AzNetworkInterface `
    -ResourceGroupName $rgname `
    | Where-Object {$_.Name -like "$vmmsnicname*"} | Select-Object -First 1 
# I am making the assumption that the first one will be the one of the VMSS NICS.

Get-AzEffectiveRouteTable `
    -NetworkInterfaceName $VMSSNic.name `
    -ResourceGroupName $ResourceGroupName | ft -AutoSize

kind regards

Alistair

TheAlistairRoss
  • 305
  • 1
  • 3