5. Containers & .NET Aspire
Distribute your applications as containers and use .NET Aspire to simplify both your local dev loop and your Azure deployments.
Course introduction
What this course covers
What you need to know first
Software prerequisites
Source code and other resources
Introduction
Why containers?
Images vs containers
How a container image is created
Preparing the app for containerization
Writing a Dockerfile
Building a container image
Running a container
Talking to container from Postman
Multi-stage builds
Image versioning
How to create images with the .NET SDK
Using dotnet publish to create images
Making smaller container images
Introduction
Introduction to Azure Container Registry (ACR)
Creating an Azure Container Registry
Publishing to an ACR via Docker
Publishing to an ACR via the .NET CLI
Introduction
What is Azure Container Apps?
Creating an Azure Container Apps Environment
Granting managed identity access to ACR
Creating a Container App
Configuring environment variables
Fixing data protection issues
Enable Ingress
Testing the API backend in Azure Container Apps
Creating new revisions
Scaling a Container App
Introduction
The need for health checks
Implementing a basic health check
Adding a database health check
Adding a Storage health check
Separating liveness and readiness checks
Configuring health probes in Azure Container Apps
Restricting heath endpoints
How to Get Personal Help While You Learn