- Lab
- A Cloud Guru
Read a Secret from an Azure Key Vault in Azure Pipelines
You are deploying a database and application using Azure DevOps, but you don't want to store the database passwords within the repo or within the pipeline. Use Azure Key Vault in the release pipeline to read a secret for the deployment.
Path Info
Table of Contents
-
Challenge
Create an Azure DevOps Organization
Create a new Azure DevOps organization and create a project called MyFirstProject.
-
Challenge
Create a Build Pipeline
Import the code for the lab located here:
https://github.com/ACloudGuru-Resources/content-az400-lab-resources.git
Create a pipeline using the
keyvault
branch.This lab requires the use of a self-hosted agent. Instructions can be found here: Self-Hosted Agent Instructions.
Make sure that that pipeline is using the self-hosted agent.
-
Challenge
Create an Azure Key Vault
Create an Azure Key Vault and then create a secret. The secret should be called
sqldbpassword
, and the value can be any strong password you choose.Note: The password must be at least 8 characters in length and must contain upper and lowercase letters, a number, and a symbol.
-
Challenge
Create a Release Pipeline
Create a new release pipeline to deploy an Azure Web App that utilizes the Azure Key Vault secret.
Make sure that that pipeline is using the self-hosted agent.
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.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.