$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
1条答案
按热度按时间vu8f3i0k1#
您可以使用PowerShell和Get-AzEffectiveRouteTable cmdlet来实现这一点
亲切的问候
阿利斯泰尔