Create a CI/CD Pipeline for Azure WebApp for Containers

1.25 hours
  • 3 Learning Objectives

About this Hands-on Lab

You’ve been given an application, and you must setup a continuous delivery pipeline for it in Azure DevOps. Import the code into Azure Repos, and create the YAML pipeline that will continuously build, and deploy this application.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create an Azure DevOps Organization
  1. Login to the Azure Portal using the provided credentials.
  2. Search for Azure DevOps from the services menu.
  3. Create a new organization and project named MyFirstProject.
Import Code to Azure Repos
  1. Import the code from this GitHub Repository: https://github.com/linuxacademy/content-az400-lab-resources.git.
  2. Create an Azure Resource Manager service connection using the service principal provided with this lab.
  3. Create a Docker Registry service connection using your DockerHub username and password.
Create the CI/CD Pipeline
  1. Modify the YAML template given to perform the following:
    • Build the container image
    • Push the image to dockerhub
    • Create an Azure WebApp
    • Push the image to the WebApp

Additional Resources

Start by logging into the Azure portal, and searching for Azure DevOps from the services menu. Proceed to create a new Azure DevOps organization, and project named MyFirstProject. Select Azure Repos, and import the following code: https://github.com/linuxacademy/content-az400-lab-resources.git

The application is located on the docker branch. Proceed to create a pipeline from the docker branch, and modify the YAML to build, and deploy to Azure. Make sure to create a service connection for both Azure, and Docker Hub.

If you don't have a docker hub account, create one here.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?