Hi,
I wish to list number of linux VM's only, their Public IP in a given subscription, using powershel.
Get-AzurePublicAddress | select name,ipaddress | export-csv C:\temp\listoflinuxServers.csv
Another one I tried, which list the servers but the public ipaddress and format is the issue.
I want to output the list of VM's and display in a single line i.e,
Name of VM, resource group name, public ip address etc.
Get-AzVM | Where-Object {$_.StorageProfile.OSDisk.OSType -eq "Linux"} | Select-Object Name,ipaddress,ostype,resourcegroupname,location
Any help is highly appreciated.
Thank you