Hands-on PBQ labs for the AZ-400 exam: build Azure Pipelines with YAML, manage infrastructure with Bicep and deployment stacks, and implement release gates with Azure Monitor alerts and approval workflows.
These labs cover all DevOps & container certifications including:
KCNADCAKCSATerraform AssociateCKAD
CKACKSAWS DevOps ProfessionalAzure DevOps AZ-400Google Prof. Cloud DevOps
Azure DevOps AZ-400 Labs - Module 9
Professional Azure DevOps labs with CI/CD pipelines, IaC with Bicep, and release quality gates - aligned to the AZ-400 exam.
Lab 25: Azure Pipelines YAML CI/CD
Azure / GUI + Terminal
Scenario: Multi-Stage Pipeline
Your team needs a multi-stage YAML pipeline for the webapp-api. Configure a build stage with .NET SDK, a test stage with code coverage, and a deploy stage targeting Azure App Service. Add environment approvals before production.
Expected: build + test succeed, deploy waits for approval.
Azure DevOps Lab Environment
Pipeline Console
Terminal
Azure Pipelines BuilderOrg: certlabs-demo
Trigger + Pool
Build + Test + Deploy
Pipeline Status
Build--
Test--
Deploy--
YAMLNo
Configuration
Trigger--
SDK--
Coverage--
Approval--
Activity Log
[system]Pipeline console ready.
az@devops:~$
Progress:0/6
Score: 0/100
After Completing All Steps:
1. Validate to see pipeline checklist. 2. View Architecture for stage flow. 3. Reset to re-practice.
0%
Lab Completed!
Lab 26: Bicep IaC + Deployment Stacks
Azure / GUI + Terminal
Scenario: Safe Infrastructure Updates
The platform team must deploy new Azure resources using Bicep templates with deployment stacks to prevent orphaned resources. Create a deployment stack, run what-if to preview changes, then deploy with deny-settings to protect critical resources.
Template = app-infra.bicepResource Group = rg-webapp-prod
Then click Load Template.
Step 2: Create deployment stack
Set:
Stack = webapp-stackDeny Settings = denyDelete
Then click Create Stack.
Step 3: Run What-If
Click What-If to preview resource changes.
Tip: Always preview before deploying to production.
Step 4: Deploy stack
Click Deploy to apply the stack.
Step 5: Verify deny-settings
In Terminal:
az stack group show --name webapp-stack --resource-group rg-webapp-prod
Step 6: Test deletion protection
az resource delete --ids /subscriptions/sub-123/resourceGroups/rg-webapp-prod/providers/Microsoft.Web/sites/webapp-api
Expected: deletion denied by stack policy.
Azure DevOps Lab Environment
Deployment Console
Terminal
Bicep Deployment Stack ManagerSub: certlabs-sub
Stack Configuration
Stack Status
Stack--
Template--
Deny--
DeployedNo
Resources
What-IfNo
App Service--
App Plan--
ProtectedNo
Activity Log
[system]Deployment console ready.
az@devops:~$
Progress:0/6
Score: 0/100
After Completing All Steps:
1. Validate to see IaC safety checklist. 2. View Architecture for deployment stack flow. 3. Reset to re-practice.
0%
Lab Completed!
Lab 27: Release Gates + Azure Monitor Alerts
Azure / GUI + Terminal
Scenario: Quality Gates for Production Release
Before releasing to production, configure Azure Monitor metric alerts on error rate, create a release gate that checks alert status, and verify the gate blocks deployment when alerts are firing. Once resolved, the gate should pass automatically.