Is there a way to determine the outgoing IP address of a Website (not a webrole)?
I've done a reverse looking up *.azurewebsites.net which returns one address, however when I manually check it (by having the webapplication visit a webserver i control), it shows a completely different IP.
What is the right way of doing this?
Azure website can use a random IP just out of 4 IP addresses per scale unit.
For a list of IP addresses per scale unit and instructions about how to determine your site's scale unit, take a look here.UPDATE: seems that all the scale unit's 4 IP addresses can now be found in the new Azure portal and the forum post will no longer be updated.
You can get the "OUTBOUND IP ADDRESSES" property via PowerShell. Here is the command:
Where YOUR_RESOURCE_NAME is the name of Resource group.
It seems Azure websites will randomly use any of the datacenter's IP addresses for outbound traffic. You can download a list of ip addresses here : http://msdn.microsoft.com/en-us/library/dn175718.aspx
Alternatively use a combination of an Azure cloud service and an Azure VPN. The VPN will ensure you get a static ip address for all outbound traffic. It's a shame they didn't forsee this for their websites service.