Calling an Azure Function from an ASP.NET Core MVC application

In the previous section, we had a look at how our Azure Function worked. Now, we want to create an ASP.NET Core MVC application that will call our Azure Function to validate an email address entered into a login screen of the application:

This application does no authentication at all. All it is doing is validating the email address entered. ASP.NET Core MVC authentication is a totally different topic and not the focus of this chapter.
  1. In Visual Studio 2017, create a new project and select ASP.NET Core Web Application from the project templates. Click on the OK button to create the project. This is shown in the following screenshot:
  1. On the next screen, ensure that .NET Core ...

Get C# 7 and .NET Core 2.0 Blueprints 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.