Forum Discussion
Is there a better way to search by IP address in the portal? Both Public & Private?
- Aug 23, 2019
Are you looking for Public or Private IPs? It sounds like Public IPs. If that's the case, you can in the Portal, go to "All Services" then search for "Public IP Addresses" (which I made a favorite), then once you go to that, you can click on "Edit Columns" at the top, and add "IP Address" as a column. Then you can find the Public IP that you're looking for and the name of the Public IP. If you click on it, you can see which VM it is associated with. That might be a little simpler for you possibly?
Maybe on the Private IP side go to the VNet and look at the resources that have IPs in that VNet? Are you using Azure DNS or your own DNS in your Private network side?
I just spotted this post and just joined here. I used this script to get all the public ip's associated with IaaS resources or Appliances in Azure. (It does not dump PaaS resources though so keep that in mind. What i mean is that if you allow a public ip range in one of your PaaS services, this script will not capture that information. I hope you find this useful:
Connect-AzAccount
Set-AzContext -Subscriptionid (Put your id here)
# This gets all the public IP's and displays it on the screen:
Get-AzPublicIpAddress | select name,ipaddress
# To pipe this out to a file. You can specify any folder you can access:
Get-AzPublicIpAddress | select name,ipaddress | export-csv c:\temp\azurepublicip.csv
In CLI, this command works, but it's ugly: az network public-ip list [--resource-group]
[--subscription]
Install-Module -Name Az
Import-Module Az