Deploying .NET 5 applications to containers
Azure App Service and Azure Functions are both great options when we purely want to focus on application logic and don't want to worry about the OS, web server, patching, and so on. Sometimes, we do need some control over these parts of the infrastructure. Some example requirements are as follows:
- We might want a .NET Framework assembly deployed to the Global Assembly Cache (GAC). This is not allowed in Azure App Service.
- We might want to run the application on a specific flavor of Linux.
- We might want to deploy related microservices on the same physical node to reduce latency.
- We might to control the life cycle of multiple microservices as a single unit for ease of management.
For all of these scenarios, running applications on containers could address these requirements. Let's briefly talk about two widely used container orchestration options for Azure.
Azure Container Instances
Azure has a number...