Perform the following steps:
- Navigate to the New | Function App blade and provide the following information:
- Now, choose Linux (Preview) in the OS field, and choose Docker Image in the Publish field, and then click on the App Service Plan/Location, as shown in the preceding screenshot. Here, choose to create a new Basic App Service plan.
- The next and most important step is to refer the image that we have pushed to the ACR. This can be done by clicking on the Configure container button and choosing the Azure Container Registry, then choosing the correct image, as shown in the following screenshot:
- Once you review all the details, click on the Create button to create the function app.
- That's it. We have created a Function App that could let us deploy the Docker images by linking it to the image hosted in the Azure Container Registry. Let's quickly test the HttpTrigger by navigating to the HTTP endpoint in the browser. The following is the output of the Azure Function.