CodingPanda
CodingPanda

Reputation: 198

how to add forward proxy to azure app service

I have azure app service which runs .net core web api. This api access several external API s to get data and those external services has to whitelist the outbound ip addresses of my app service.

Azure app service has several outbound ip addresses and it can be change when upgrade/downgrade app service or when make internal changes like changing app service plan or resource group.

Is there any solution in azure to setup this app service behind a forward proxy ?, so i can share the IP of the forward proxy to external parties.

Upvotes: 1

Views: 7544

Answers (2)

Balakrishna Atthota
Balakrishna Atthota

Reputation: 31

I think the best way would be to add all App services under a virtual network and create a Virtual Network Gateway to all outbound connections.

This would potentially need below azure services to be created: - Virtual network - Subnet - Virtual Network gateway - Routing tables (to route traffic via Gateway)

Upvotes: 2

Thiago Custodio
Thiago Custodio

Reputation: 18387

A better way would be sharing a domain name rather than IP address. Here's how to configure it directly in the Azure Portal:

https://learn.microsoft.com/en-us/azure/app-service/app-service-web-tutorial-custom-domain

You can also add an API Management in front of your web app and use it as API gateway and also apply policies on it.

https://learn.microsoft.com/en-us/azure/api-management/configure-custom-domain

Upvotes: 0

Related Questions