Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I determine the IP address of an Azure hosted WebApp

Tags:

I am using Azure platform for a webapp. I need to find out IP address of my web app so that I can whitelist it to an external server where I have created APIs. Is NSLookup the correct way to determine the IP address for whitelisting?

like image 350
Pawan Singewar Avatar asked Nov 08 '16 13:11

Pawan Singewar


2 Answers

The quickest way would be to login to the Azure portal and select your web app from the resources menu. Once you have the blade open for your web application there are two types of IP addresses. Inbound and outbound. For outbound IP, click properties from the resources menu. This will display a list of all possible outbound IP addresses.

enter image description here

For inbound IP address, click on Custom Domains from the properties menu and your external IP will appear there.

enter image description here

like image 146
Tommy Avatar answered Oct 16 '22 19:10

Tommy


Well, that would be one way, but PowerShell would be better.

Get-AzureRmWebApp -Name $WebAppName$ $webapp.outboundipaddresses 

for me it returns a bunch of IP addresses

like image 37
4c74356b41 Avatar answered Oct 16 '22 17:10

4c74356b41