Filtering traffic by IP and dynamic IP restrictions

We may want to restrict access to Azure Web Apps. We can achieve this using the <ipSecurity> element. We can define which IP addresses can access Azure, and the action to take in case of a violation of  that rule:

<configuration>  <system.webServer>    <security>      <ipSecurity allowUnlisted="true" denyAction="NotFound">        <add allowed="true" ipAddress=""               subnetMask=""/>      </ipSecurity>    </security>  </system.webServer></configuration>

Dynamic IP restrictions allow us to block access to Azure Web Apps based on different scenarios as follows:

  • To deny access by maximum ...

Get Implementing DevOps with Microsoft Azure now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.