How can I fetch AzureVM name from IP address. I have already tried to get NIC name from IP by doing the following.
Get-AzureRmNetworkInterface | ForEach { $Interface = $_.Name; $IPs = $_ | Get-AzureRmNetworkInterfaceIpConfig | Select PrivateIPAddress; Write-Host $Interface $IPs.PrivateIPAddress }
Can this be done in a better way?