2

What is the maximum number of IP Addresses that we can put in the "ipRestrictions" section of the web.config inside Azure Resource Explorer?

Currently, we have to whitelist 350 IP addresses that should be able to access the App Service. However, after putting the IP addresses the App Service causes an internal server error possibly due to the number of IP Addresses. What is the workaround for this?

jmc
  • 1,649
  • 6
  • 26
  • 47

1 Answers1

0

Please have a try to do it with the azure resource (https://resources.azure.com) WebsiteName->config->web->ipSecurityRestrictions. We could add the value as following then put the http request. I try to add more than 350 ipAddress, it still works well. More detial steps please refer to another SO Thread.

ipSecurityRestrictions": [
      {
        "ipAddress": "x.x.x.x",
        "subnetMask": "x.x.x.x"
      },
      {
        "ipAddress": "x.x.x.x",
        "subnetMask": "x.x.x.x"
      }
     ....
   ]
Community
  • 1
  • 1
Tom Sun - MSFT
  • 24,161
  • 3
  • 30
  • 47