Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Website Reserved IP

I've been trying to find an answer to this for a few days.

I want to host a new azure website in either the Basic tier or Standard tier.

The site will be calling a third party service.

I need to give this service provider an IP address that they will whitelist. So when the new azure website makes requests to this service the IP address for the request needs to always be the same, as this will be the IP whitelisted.

I read that Azure offers "Reserved IPs" for cloud services and VMs but I wanted to know if something similar can be done with Azure Websites as I really don't want to go with cloud/VM.

My knowledge of networking is limited but as I understand it, if I were to get an IP SSL cert and apply that to my Azure Website then the website would have a static IP address.

If that is the case, would any requests to the third party service be hitting the service providers external firewall with this same static IP?

Thanks for any advice people can give.

like image 359
strangerinthealps Avatar asked Jun 23 '14 20:06

strangerinthealps


People also ask

How do I create a reserved IP address in Azure Resource Manager?

See the Az PowerShell module for cmdlets to manage Azure Resource Manager resources. The New-AzureReservedIP cmdlet creates a reserved IP address. This command creates a new reserved IP address in the subscription, which can be used for creating cloud services that include Web, Worker, and Virtual Machines.

How IP reservation for VIPs (reserved IP) works in azure?

The following image shows how IP reservation for IP Reservation for VIPs (Reserved IP) works. Azure offers Reserved IP in a regional scope, i.e., the Reserved IP can be used for association with a Cloud Service that uses any Role Instance Size.

How to create a reserved IP from an existing dynamic IP address?

The latest release of the Azure Powershell Cmdlets now allows you to create a Reserved IP from an existing Dynamic IP address. The new–ServiceName attribute allows Azure to create a new Reserved IP from the current VIP of the specified service.

How many reserved IPS can I use with my Azure subscription?

All Azure subscriptions are authorized to use 5 Reserved IPs. However, you can request a Reserved IP limit increase for your subscription by logging a support request here. Please refer to the Azure Subscription limits documentation here .


4 Answers

As David Makogon's answer points out, applying an IP-based SSL certificate only gives the website a static inbound IP address.

However, the outbound IP address a website uses when making outbound network calls can be determined based on where your website is hosted. Microsoft has a list of the these IP addresses here. The third-party service would have to whitelist all of the IP addresses used by the scale unit your website is hosted in (e.g. waws-prod-am2-005).

like image 153
Brant Bobby Avatar answered Oct 21 '22 05:10

Brant Bobby


Correct me if I am wrong, but the information shared by Brant Bobby above shows that, in fact:

All Azure websites (/Web Apps) already have a discoverable and published outgoing IP address.

This outgoing IP address will never be unique to their own site however. So one must keep in mind if they use it for a white-list, it will be allowing in a lot of other Azure visitors hosted on the same scale unit.

Simply get the so-called "scale unit" name for your site, which is the same as what's given in your site's FTP address (and so forth), which is in the format: "waws-prod-[3LetterVar]-[3DigitNum]", e.g. waws-prod-blu-007.

As an example from that article, all the East US region Azure websites can find the four IP addresses their site may rely on as follows (so if white-listing, all 4 should be white-listed):

East US Region

Outbound IP addresses for each scale unit, currently 4 for each. They said they may add more IPs to each scale unit in the future, but these should not change.

waws-prod-blu-001: 168.62.48.13, 168.62.48.19, 168.62.48.33, 168.62.48.122

waws-prod-blu-003: 137.117.81.128, 137.117.81.142, 137.117.81.181, 137.117.81.82

waws-prod-blu-005: 137.117.80.189, 137.117.81.52, 137.117.81.90, 137.117.80.178

waws-prod-blu-007: 23.96.33.205, 23.96.34.196, 23.96.35.20, 23.96.36.229

waws-prod-blu-009: 23.96.97.203, 23.96.97.233, 23.96.97.235, 23.96.97.238

waws-prod-blu-011: 23.96.112.60, 23.96.112.117, 23.96.112.152, 23.96.112.15

waws-prod-blu-013: 191.238.8.154, 191.238.9.80, 191.238.9.94, 191.238.9.170

waws-prod-blu-015: 191.236.19.222, 191.236.19.242, 191.236.21.165, 191.236.18.160

waws-prod-blu-017: 191.238.32.104, 191.238.32.154, 191.238.34.67, 191.238.35.12

waws-prod-blu-019: 104.45.138.197, 104.45.142.87, 104.45.128.144, 104.45.142.131

waws-prod-blu-021: 191.237.24.189, 191.237.30.36, 191.237.26.164, 191.237.28.161

waws-prod-blu-023: 191.236.50.206, 191.237.30.215, 191.237.25.148, 191.237.22.195

waws-prod-blu-025: 191.237.31.86, 191.237.26.176, 191.237.20.70, 191.237.18.239

like image 29
Nicholas Petersen Avatar answered Oct 21 '22 04:10

Nicholas Petersen


An SSL cert with Web Sites will be tied to an inbound IP address. However, Web Sites does not provide a static outbound IP address.

If you need a static IP address to align with 3rd-party services, you'd need to have something residing in Azure (e.g. Application tier) running in a cloud service / VM that your web site accesses, and then have that app tier (with static IP address) communicate with your 3rd-party services.

like image 8
David Makogon Avatar answered Oct 21 '22 03:10

David Makogon


Azure now supports having static outbound IP address as well.

https://azure.microsoft.com/en-us/documentation/articles/app-service-app-service-environment-intro/

If we do not want to go for costlier App Service Environment setup, we can directly use the outbound IP addresses mentioned in the Azure portal in properties section, Azure assures that it remain 99.9% static. Nothing really changes until there is some changes data center wide. Moreover, the reserved Ip what we use in IaaS is also not 100% reserved for us and azure provides SLA of 99.9% here as well. So, In my opinion, instead of going for ASE and hosting IaaS and using reserved IP, we can just use outbound Ip provided by azure, since we get same reliability in both cases.

like image 1
Satheesh Avatar answered Oct 21 '22 03:10

Satheesh