Create a Multi-Stage Build in Azure Pipelines to Deploy a .NET App

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

Your challenge is to deploy a .NET app to Azure using Azure DevOps. More specifically, you must create a multi-stage build, using YAML. The code has been provided, and you must create the build, and deploy operations.

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 and Setup Environment
  1. Import the code from this GitHub Repository:
  2. Create a service connection for Azure Resource Manager using the service principal provided.
Create the CI/CD Pipeline
  1. Modify the YAML to add a build and deploy stage.

    HINT: Use the assistant in Azure DevOps to help with YAML build syntax.

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:

The application is located on the stage branch. Proceed to create a pipeline from the stage branch, and modify the YAML, to build and deploy to Azure App Services. The Azure WebApp has already been created, which you can select as the target, after creating the service connection.

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?