Get list of Azure Resources that have IP addresses associated with it. (All Azure resources not only VM's)

Sameer Bhat 126 Reputation points Microsoft Employee
2021-11-14T06:39:45.187+00:00

Hi Team,

I have two questions

1) How to get list of all azure resources (names only like VM's, Load Balancers, Application Gateways, etc) that can have ip address associated with it. I want name of all resources that have ip addresses ?

2) For the above list of resources, how to get the ip address and fqdn from powershell script ?

Kind regards,
Sameer

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,395 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,646 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. suvasara-MSFT 10,041 Reputation points
    2021-11-16T07:40:32.583+00:00

    @Sameer Bhat , Hope this helps,

       Get-AzureRmResource -ResourceType Microsoft.Network/publicIPAddresses  
    

    Update: Here is the command to list all the resources that are associated with IPAdresses,

       Get-AzPublicIpAddress | ?{$_.IPConfiguration -ne $null} | epcsv .\output.csv  
    

    ----------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.