user22147570
user22147570

Reputation: 19

How can i have only 1 ip address in outbound addresses for an Azure web App?

In Azure web app there are a number of outbound ip addresses. Clients need to whitelist these addresses to be able to access the web site. Is there a way i can have only one ip address in the outbound and keep it at all times for that website , sort of like a static ip address ?

I have tried creating a new site and seeing what it does , but a number of addresses are created .

UPDATE: Steps taken:

1. Create a virtual network (keep values as default) and created a subnet 
  1. created a NAT and associated with the subnet of the VNet
  2. Set the Outbound IP in the Nat gateway as one of the 32 outbound ips of the web app
  3. In the web app under VNate i created a VNaet and selected the created Vnate above and the gate way from above aswell. Thats it .

Now if clients only whitelist the Outbound IP in the NAT the regardless of the request it should still be ok ?

Upvotes: 1

Views: 1959

Answers (1)

rickvdbosch
rickvdbosch

Reputation: 15621

Assuming you're working with an App Service, there's this:

Get a static outbound IP

You can control the IP address of outbound traffic from your app by using regional VNet integration together with a virtual network NAT gateway to direct traffic through a static public IP address. Regional VNet integration is available on Basic, Standard, Premium, PremiumV2 and PremiumV3 App Service plans. To learn more about this setup, see NAT gateway integration.

Source: Inbound and outbound IP addresses in Azure App Service

Upvotes: 0

Related Questions