- A Cloud Guru
Create a Multi-Stage Build in Azure Pipelines to Deploy a .NET App
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.
Table of Contents
Create an Azure DevOps Organization
- Log in to the Azure portal using the provided credentials.
- Navigate to Azure DevOps.
- Create a new organization and project named
Import Code and Set Up Environment
- Import the code from this GitHub repository: https://github.com/ACloudGuru-Resources/content-az400-lab-resources.git.
- Create a service connection for Azure Resource Manager using the service principal provided.
Create the CI/CD Pipeline
- This lab requires the use of a self-hosted agent. Instructions can be found here: Self-Hosted Agent Instructions.
- Create a YAML template with a build and deploy stage.
- Include a task to use .NET Core version 3.1.x.
- Make sure BOTH stages are using the self-hosted agent.
HINT: Use the assistant in Azure DevOps to help with YAML build syntax.
Optionally, you can use the provided YAML template
What's a lab?
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.