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?
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.
For inbound IP address, click on Custom Domains from the properties menu and your external IP will appear there.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With