Part 2 of a basic series covering ASP.NET, Docker and Azure. This part is independent of what we did with ASP.NET in part 1, and serves as a guide on getting Docker running in Azure. I’m not going to cover the basics of Docker or an introduction into why containerization is a Good Thing™ there’s a million other posts & articles out there on those topics
This is a very simple tutorial and 101 guide on getting an ASP.NET Core web application up and running. We’re starting from first principles, and we won’t get very deep into the vast world of ASP.NET, so you won’t find any details on topics like MVC, Routing or Entity Frameworks here. Our goal is to get a very simple web app & server running on your Windows/Linux/OSX machine
Note. This is a re-write of a older post, as the .NET SDK and tooling have changed significantly upon final release in March 2017, making the old post more or less obsolete
This is a series of posts providing a step by step guide on creating a ASP.NET Core web app, then creating a Docker host in Azure to run it, finally publishing and running your ASP.NET app as a Docker image & container. I’ve split this into three sub-posts to keep it manageable & readable.
You do not need Windows or Visual Studio for this exercise (welcome to the new Microsoft!), all tools used are open source and multi-platform, I’ll be using Windows for basic convenience. Naturally the Docker host will be on Linux.
The three parts are pretty much independent. If you already know ASP.NET Core or have an existing app you can skip part 1. If you already have a Docker host running somewhere (maybe not in Azure, heaven forbid!) then skip ahead to part 3.
You will need an Azure subscription for part 2, you can get a free subscription with $25 per month of credit via ‘Visual Studio Dev Essentials’