By Ketan Boraiah (Technical Content Writer) · Published · 4 min read · Technology
Understand pipeline stages, artifacts, configuration, approvals, and rollback as parts of a repeatable software delivery process.
A pipeline makes delivery steps explicit
Azure Pipelines can automate build, test, and deployment work, but automation alone does not make delivery safe. A pipeline repeats the instructions it is given, including incomplete or incorrect ones. The useful starting point is a known manual process with defined inputs, outputs, and checks. Identify what must happen before a change can be released and which evidence shows that each step succeeded.
This article revisits an older introduction as a general delivery guide. Exact task versions, service connections, and supported runtime images change over time, so verify implementation details against current Microsoft documentation for your environment. The DevOps service page provides a route to discuss a scoped delivery workflow. Do not assume a particular pipeline design fits every application or organization.
Define the build boundary
A build should start from a known source revision and declared dependencies. Use the repository's supported package manager and runtime configuration, and restore dependencies through the normal process. Avoid relying on software installed manually on one developer's machine. Record the commands needed to compile, run relevant checks, and produce a deployable artifact. The same commands should be understandable outside the pipeline interface.
Example: a web application build
A typical workflow might restore packages, compile the application, execute focused tests, and publish an artifact. If content files are required at runtime, verify they are included in the published output. A successful compilation does not prove that a deployed template can find its content or configuration. Include a representative startup or smoke check appropriate to the application.
Separate building from deploying
Build a versioned artifact once, then promote that artifact through the intended environments when practical. Rebuilding separately for each environment can introduce differences that were not tested. Environment-specific values should be supplied through the approved configuration mechanism rather than embedded in source or copied into the artifact informally. Make the source revision and artifact version traceable.
Understand what the artifact contains and excludes. Uploaded user files, databases, secrets, and infrastructure state may need separate handling. A deployment package is not automatically a backup. If the release requires a database migration, define its order, compatibility expectations, and recovery plan. Avoid assuming that rolling back application files also reverses every data change safely.
Treat checks as evidence, not decoration
Choose checks that cover the risks of the change. Unit tests, integration tests, static analysis, and smoke tests answer different questions. A long pipeline with many green steps can still miss the critical user journey. Start with the application's actual requirements and failure modes, then select the smallest useful set of checks. Expand when evidence shows a gap.
Make failure output actionable. A failed test should identify the scenario and relevant observation. Do not catch errors broadly and continue to deployment unless the exception is explicitly justified and visible. If a check is temporarily unavailable, label the limitation and require the appropriate decision rather than quietly converting it into success. The coding practices guide explains why honest failure states matter.
Protect credentials and deployment authority
Use supported secret and service-connection mechanisms with least-privilege access. Do not place tokens in YAML, scripts, logs, or copied command examples. Limit who can change pipeline definitions and approve production deployment. A person able to modify a pipeline may be able to influence how secrets are used, so review permissions as part of the delivery design rather than treating them as an administrative afterthought.
Review untrusted contributions
Consider what happens when a pull request changes scripts or pipeline configuration. Do not expose production credentials to untrusted code. Separate validation from privileged deployment and use the platform's supported controls. The exact arrangement depends on repository visibility, contribution model, and service setup, so validate the security behavior for the actual environment rather than relying on a generic template.
Design release and rollback together
Before deploying, define the smoke checks and the conditions that trigger a stop or rollback. Confirm who makes the decision and how the team communicates status. A release should not be considered complete merely because files were copied successfully. Verify the service is responsive and that representative content or transactions behave as expected without creating unwanted live activity.
Rollback must be rehearsed for the application and its dependencies. Some changes can be reversed by redeploying an earlier artifact; others require a forward fix or data recovery. Document limitations honestly. The backup and restore guide distinguishes recovery evidence from the reassuring existence of a backup file.
Maintain the pipeline as production code
Review pipeline changes, pin or manage dependencies appropriately, and update supported task versions deliberately. Remove obsolete steps and document non-obvious constraints. Track flaky tests and environmental failures instead of normalizing repeated reruns until the result turns green. A repeatable process should make uncertainty visible and reduce it over time.
Measure practical outcomes such as time to feedback, deployment failures, and recovery effort, interpreting them in context. Avoid optimizing a single metric at the expense of quality or staff wellbeing. A useful pipeline gives the team a clear path from a known revision to a verified release, with protected authority, observable failures, and a recovery plan that has been tested.
For current platform terminology and supported pipeline concepts, consult Microsoft's Azure Pipelines documentation .
Questions or corrections about this article? Contact the editorial team.