Deploy a cloud-native .NET microservice automatically with GitHub Actions and Azure Pipelines

Intermediate
Developer
DevOps Engineer
Solution Architect
ASP.NET Core
Azure
Azure Container Registry
Azure Kubernetes Service (AKS)
GitHub

Use CI/CD pipelines to build a container image and deploy it to Azure Kubernetes Service (AKS).

Learning objectives

This module guides you through the following steps:

  • Authenticate GitHub Actions to a container registry.
  • Securely store sensitive information that GitHub Actions uses.
  • Implement an action to build the container image for a microservice.
  • Modify and commit the microservice code to trigger a build.
  • Implement an action to deploy the updated container to an Azure Kubernetes Service (AKS) cluster.
  • Revert the microservice to the previous deployment.
  • Implement Azure Pipelines to build and deploy a microservice to Azure Kubernetes Service (AKS) cluster.

Prerequisites

  • Conceptual knowledge of DevOps practices.
  • Conceptual knowledge of containers, Docker, and AKS.
  • Access to an Azure subscription with Owner permissions.
  • Access to a GitHub account.
  • Access to an Azure DevOps organization.
  • Ability to run development containers in Visual Studio Code or GitHub Codespaces, including Docker and the necessary Visual Studio Code extensions installed.