- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
Deploy a Python App to an AKS Cluster Using Azure Pipelines
You are a DevOps Engineer at Globomantics, tasked with establishing an automated path from code to production for a small Python web application. Your goal is to create an Azure Pipeline that builds a container image for a simple voting app and deploys it to an Azure Kubernetes Service (AKS) cluster. Completing this lab will reinforce CI/CD fundamentals while showing how Azure Pipelines, containers, and AKS work together to deliver changes quickly and reliably.
Lab Info
Table of Contents
-
Challenge
Create an Azure DevOps Organization
Create a new Azure DevOps organization and project.
-
Challenge
Import Code and Set Up Environment
- Import the repository from the additional resources section.
- Deploy a self-hosted agent on the provided VM using a personal access token.
- To connect to the VM, use the instant terminal on the lab page or the link in the additional resouces section.
- Create a new AKS environment in Azure Devops and a service connection to Azure Container Registry
-
Challenge
Create the CI/CD Pipeline and Examine Pipeline YAML
- Update the voting manifest and the pipeline YAML to provide the correct Azure Container Registry name
- Create a new pipeline and examine the pipeline YAML
-
Challenge
Access the AKS Cluster
Browse to the cluster’s external IP and validate the voting app works as expected
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.