Example

Now we will create an Azure Function with the DNS lookup example in PHP:

  1. 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.
  2. 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. ...

Get Learning Azure Functions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.