I need to retrieve the NICs and the associated VMs in Azure I've run the following Cmdlet:
Get-AzureRmNetworkInterface | Select Name, VirtualMachine
But, it only generate the names of the NICs but when it come to the Virtual Machine it displays Microsoft.Azure.Commands.Network.Models.PSResourceId, as shown in the following figure.
Please advise how to retrieve the actual name of the VM.