Configuring additional security using IP whitelisting
In this recipe, you'll learn a technique to secure and restrict access to your Azure functions only to those clients whose IP addresses are whitelisted.
Let's say you want to restrict the function app's access to the internal organization alone, as it will be used only by the users' apps hosted internally within the organization's network. To do this, you need to whitelist one or more IP addresses (or IP address ranges) to allow access to the Azure function app.
In the recipe, we are going to create access restriction rules. Rules are nothing but instructions on whether to allow or block access based on IP addresses, IP address ranges, and even virtual networks.
Getting ready…
Please create the following services if they are not created already:
- A function app
- An HTTP trigger function
How to do it…
In this section, you'll learn how to implement the whitelisting...