Thank you for reaching out.
You can go through this documentation to find the inbound & outbound IPs of the App service.
Regardless of the number of scaled-out instances, each app has a set number of outbound IP addresses at any given time. Any outbound connection from the App Service app, such as to a back-end database, uses one of the outbound IP addresses as the origin IP address. The IP address to use is selected randomly at runtime, so your back-end service must open its firewall to all the outbound IP addresses for your app.
The set of outbound IP addresses for your app changes when you perform one of the following actions:
- Delete an app and recreate it in a different resource group (deployment unit may change).
- Delete the last app in a resource group and region combination and recreate it (deployment unit may change).
- Scale your app between the lower tiers (Basic, Standard, and Premium), the PremiumV2 tier, the PremiumV3 tier, and the Pmv3 options within the PremiumV3 tier (IP addresses may be added to or subtracted from the set).
You can find the set of all possible outbound IP addresses your app can use, regardless of pricing tiers, by looking for the possibleOutboundIpAddresses
property or in the Additional Outbound IP Addresses field in the Properties blade in the Azure portal. See Find outbound IPs.
You can also go through this section to Get a static outbound IP for your web app.
If it helps you can also take a look at this tutorial on how to lock down the outbound traffic from your App Service app to back-end Azure resources or other network resources with Azure Firewall.
Hope this helps! Please let us know if you have any additional questions.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.