Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 4.02 KB

File metadata and controls

73 lines (50 loc) · 4.02 KB

deploy-first-containerapp-terraform

This tutorial/lab has been created to take you through a DevOps journey to build & deploy an Azure Container Application using Terraform and GitHub Actions.

It will include from setting up the GitHub pipeline, prerequisites and finishing with a successful Container Application being deployed - along with looking at alerting/monitoring!

As with my tutorials/labs, it is an example of a real-world setup!

What you will learn

In this tutorial/lab, you will learn:

  • Setup your Azure subscription & create service principal to authenticate between GitHub repo and Azure
  • Prerequisites to configure terraform storage
  • Use Terraform to deploy container app along with other services including Log Analytics & Application Insights
  • Build and deploy example container application to Azure Container Registry
  • An understanding of CI/CD with automated application deployments
  • Reviewing monitoring and alerting using Application & Container Insights

How the labs work

To run this tutorial/lab successfully, please review each folder - inside each folder has a number of *.md files, starting from 1..2 etc. complete each one in number sequence 1...2...3...etc

Deployment Overview

Once we commit a change to the source code – we want the Container Application to have been deployed with the latest commit automatically.

  1. Developers/DevOps commits code change to GitHub Repository
  2. Change is merged into GitHub Repository
  3. GitHub Action/Workflow runs the relevant steps required to update/deploy the Azure resources and image
  4. Latest image is built and deployed to Azure Container Registry
  5. GitHub Action updates Container App with latest image tag
  6. Container App pulls latest image from Azure Container Registry using Managed Identity to authenticate
  7. Container App is monitored both using Log Analytics & Container Insights

Azure resources that will be deployed

Example containerapp

Thank you

Thank you for taking the time to work on this tutorial/labs. Let me know what you thought!

Feel free to check out my blog for more awesome content! https://thomasthornton.cloud/

Ensure to follow me on GitHub. Please star/share this repository!