Deploying to the cloud
You can deploy your .NET Core applications to the cloud using any cloud provider, for example, Amazon Web Services (AWS) or Microsoft Azure.
Creating an ASP.NET Core MVC web application to publish
In Visual Studio 2017, add a new ASP.NET Core Web Application (.NET Core) project named Ch16_ImageEditorSite
. Choose the Web Application template and enable Docker support, as shown in the following screenshot:
In Visual Studio Code, create a folder named Ch16_ImageEditorSite
, and open the folder. In Terminal, enter the command: dotnet new mvc
.
Since we are focusing on learning how to publish and deploy, rather than how to build web applications, we will use the MVC template web site as an example. The only addition I made is to add a portrait that my Mum painted of me to the About page, as shown in the following screenshot:
Register an Azure account
Go to http://portal.azure.com/ and register an account to get a free trial. You will be able to continue after the end of the...