Deploy your first container app using Terraform and GitHub Actions tutorial/lab : Thomas Thornton
by: Thomas Thornton
blow post content copied from Thomas Thornton
click here to view original post
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!
This is also my contribution to this years Festive Tech Calendar – don’t forget to check out this content, its awesome!
As with my tutorials/labs, it is an example of a real-world setup – taking you through the journey from the image above:
- Developers/DevOps commits code change to GitHub Repository
- Change is merged into GitHub Repository
- GitHub Action/Workflow runs the relevant steps required to update/deploy the Azure resources and image
- Latest image is built and deployed to Azure Container Registry
- GitHub Action updates Container App with latest image tag
- Container App pulls latest image from Azure Container Registry using Managed Identity to authenticate
- Container App is monitored both using Log Analytics & Container Insights
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 lab works
The lab/tutorial is found in this GitHub repository
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
- Review Prerequisities
- Lab 1 – Initial Setup
- Service principal creation
- Configure GitHub secrets with newly created service principal
- Lab 2 – Setup For Terraform
- Setup remote storage account/blob for Terraform .tfstate files
- Lab 3 – Deploy Terraform Base
- Enabling GitHub Action to begin deploying Azure resources
- Deploys Azure resources ready to begin deploying Container Application
- Lab 4 – Build & Deploy Application
- Build and deploy test application to Azure Container Registry
- Lab 5 – Deploy Container App using Terraform
- Deploy container environmenet and application with the image created in lab 4.
- Lab 6 – Monitoring & Alerting
- Reviewing Application Insights and Log Analytics data generated from deployed container app
Thank you!
Thank you for taking the time to work on this tutorial/labs. Let me know what you thought!
December 06, 2022 at 03:30PM
Click here for more details...
=============================
The original post is available in Thomas Thornton by Thomas Thornton
this post has been published as it is through automation. Automation script brings all the top bloggers post under a single umbrella.
The purpose of this blog, Follow the top Salesforce bloggers and collect all blogs in a single place through automation.
============================
Post a Comment