How to restrict access to an App Service using a setting inside the Azure Portal
We have a web app that is deployed as an App Service in Azure. We would like to restrict access to it by having a white list of IP addresses that can be done in some Azure App Service setting and not in web.config that we have inside the project. Currently, this is how we do IP address restriction in our environments. Production: We have VNet Integration setup for the App Service. We attached an NSG to the VNet's Subnet and from the NSG we can control inbound and outbound access. Staging: We have the following block of configuration in our web.config that contains the whitelisted IP addresses