0
0
Azurecloud~10 mins

Release pipeline basics in Azure - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Release pipeline basics
Start Release Pipeline
Fetch Artifacts
Deploy to Environment
Run Tests
Approve Deployment?
NoStop Pipeline
Yes
Deploy to Next Environment or Finish
End
The release pipeline starts by fetching build artifacts, then deploys them to an environment, runs tests, waits for approval, and either stops or continues to the next environment until finished.
Execution Sample
Azure
Start pipeline
Fetch artifacts
Deploy to Dev
Run tests
Approve deployment
Deploy to Prod
This sequence shows a release pipeline deploying code first to a development environment, running tests, then after approval, deploying to production.
Process Table
StepActionResultNext Step
1Start pipelinePipeline startedFetch artifacts
2Fetch artifactsArtifacts readyDeploy to Dev
3Deploy to DevCode deployed to DevRun tests
4Run testsTests passedApprove deployment
5Approve deploymentApproval grantedDeploy to Prod
6Deploy to ProdCode deployed to ProdEnd pipeline
7End pipelinePipeline finished successfullyNone
💡 Pipeline ends after successful deployment to production.
Status Tracker
VariableStartAfter Step 2After Step 3After Step 4After Step 5After Step 6Final
Pipeline StatusNot startedArtifacts fetchedDeployed to DevTests passedApprovedDeployed to ProdFinished
EnvironmentNoneNoneDevDevDevProdProd
ApprovalPendingPendingPendingPendingGrantedGrantedGranted
Key Moments - 2 Insights
Why does the pipeline stop if approval is not granted?
Because the approval step controls whether deployment continues. As shown in step 5 of the execution_table, if approval is not granted, the pipeline stops to prevent unwanted deployments.
What happens if tests fail after deployment to Dev?
The pipeline would stop after the 'Run tests' step (step 4) because tests must pass to proceed. This prevents deploying faulty code to production.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the pipeline status after step 3?
ADeployed to Dev
BArtifacts fetched
CTests passed
DApproved
💡 Hint
Check the 'Pipeline Status' row in variable_tracker after step 3.
At which step does the pipeline wait for approval?
AStep 2
BStep 4
CStep 5
DStep 6
💡 Hint
Look at the 'Action' column in execution_table for the approval step.
If tests fail at step 4, what happens next?
APipeline continues to deploy to Prod
BPipeline stops
CPipeline retries tests automatically
DPipeline skips approval
💡 Hint
Refer to key_moments about test failure consequences.
Concept Snapshot
Release pipeline basics:
- Starts by fetching build artifacts
- Deploys to an environment (e.g., Dev)
- Runs tests to verify deployment
- Waits for manual approval before next deployment
- Deploys to next environment or finishes
- Stops if tests fail or approval denied
Full Transcript
A release pipeline automates deploying code through stages. It begins by fetching the build artifacts. Then it deploys the code to a development environment. After deployment, it runs tests to ensure the code works. If tests pass, the pipeline waits for a manual approval. Once approved, it deploys to the production environment. The pipeline stops if tests fail or approval is not granted. This process ensures safe and controlled code releases.