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:
Note
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.
- In Visual Studio 2017, create a new project and select
ASP.NET Core Web Application
from the project templates. Click on theOK
button to create the project. This is shown in the following screenshot:
- On the next screen, ensure that
.NET Core
andASP.NET Core 2.0
is selected from the drop-down options on the form. SelectWeb Application (Model-View-Controller)
as the type of application to create.
Don't bother with any kind of authentication or enabling Docker support. Just click on the OK
button...