Creating a sample ASP.NET Core web application
In this chapter, we will use a simple ASP.NET web application to illustrate some features of AWS and Azure. The sample application has been kept simple, as we want to keep the focus on deploying to the cloud. We will add a new endpoint that returns the health of the application. This will be used by the cloud platform, in order to determine whether the application is healthy.
Our suggestion is that you start with the source code in the GitHub repository, as this chapter is more about the Visual Studio extensions than the ASP.NET Core application. We will describe the steps we took to build the sample example, for those who want to build the application themselves:
- First, we created the sample application by using the
dotnet new mvc
command in a folder namedChapter 10 Final
. This is shown in Figure 10.6: - To make sure the application restored, we used the
dotnet run
command as...