azure-cli
azure-cli copied to clipboard
SDN nsg list-effective-nsg & show-effective-route-table Table output unavailable
When calling the any of following command with output format as table az network nic list-effective-nsg -g "IMDS_Demo" -n "imdsvm155" -o table az network nic show-effective-route-table -g "IMDS_Demo" -n "imdsvm155" -o table Table output unavailable. Use the --query option to specify an appropriate query. Use --debug for more info.
On PS CLI
PS C:\> azure network nic effective-nsg list "IMDS_Demo" "imdsvm155"
info: Executing command network nic effective-nsg list
+ Getting the effective network security groups
data: NIC Name NSG Name Rule Name Protocol Direction Access
data: ---------- --------- -------------------------------------------------- -------- --------- ------
data: IMDSVM-nsg imdsvm155 securityRules/default-allow-rdp Tcp Inbound Allow
data: defaultSecurityRules/AllowVnetInBound All Inbound Allow
data: defaultSecurityRules/AllowAzureLoadBalancerInBound All Inbound Allow
data: defaultSecurityRules/DenyAllInBound All Inbound Deny
data: defaultSecurityRules/AllowVnetOutBound All Outbound Allow
data: defaultSecurityRules/AllowInternetOutBound All Outbound Allow
data: defaultSecurityRules/DenyAllOutBound All Outbound Deny
info: network nic effective-nsg list command OK
PS C:\> azure network nic effective-route-table show "IMDS_Demo" "imdsvm155"
info: Executing command network nic effective-route-table show
+ Getting the effective route table
data: Source State Address Prefix Next Hop Type Next Hop IP
data: ------- ------ -------------- ------------- -----------
data: Default Active 10.4.0.0/16 VnetLocal
data: Default Active 0.0.0.0/0 Internet
data: Default Active 10.0.0.0/8 None
data: Default Active 25.0.0.0/8 None
data: Default Active 100.64.0.0/10 None
data: Default Active 172.16.0.0/12 None
data: Default Active 192.168.0.0/16 None
data: User Active 10.0.0.0/24 None
info: network nic effective-route-table show command OK
It should work at least as the PS CLI version