You have been given the code for a Node.js application and must deploy it to an Azure WebApp with two slots. Use Azure DevOps to integrate the code and deploy it to the `dev` slot in the Azure WebApp provisioned with this hands-on lab.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Create an Azure DevOps Organization
- Log in to the Azure Portal using the provided credentials
- Search for Azure DevOps from the services menu
- Create a new organization and project named
MyFirstProject
- Push code to Azure Repos and Create a Build
- Log in to the Linux VM provided with this lab
- Use the following command to clone the
node-express
branch of the repository:git clone -b node-express https://github.com/linuxacademy/content-az400-lab-resources.git
- Remove the GitHub origin with the following command
git remote remove origin
- Copy the commands from Azure Repos to add the new remote origin and push the code
- Start a new build pipeline using the YAML present in the new Azure DevOps repo
- Deploy Node.js App to Azure WebApp Slot
- Create a release pipeline from Azure DevOps
- Select the source as the existing packaged artifact
- Within the Stage, add the task to deploy to Azure WebApp
- Add a task to swap slots from
dev
toproduction