Now we will create an Azure Function with the DNS lookup example in PHP:
- Log into Azure Portal and click on Azure Function App. We already created Azure Function App in the previous chapter, so now we will create the Azure Function.
- Click on the + sign and then select the coding language, as shown in the following screenshot:
By default, PHP gives the template that fetches the entities from a storage table when it receives the HTTP request.
The code for fetching a data from the storage table is already there in PHP. We can directly use it. However, in this example, we will not use the storage table. We will write code for DNS lookup. ...