PUBLIC BETA OFFER

Save 50% off on an Eligible Learning PlanValid for 1-month plan, 3-month plan, 12-month plan · Code LPXBETA50 · Ends Dec 6, 2026

AZ-401: Retention for Pipeline Outputs and Release Dependencies

Inventory release evidence and dependencies, configure a bounded Azure Pipelines run-retain control, and verify availability and deletion effects separately from package and recovery requirements.

Guide

Content version 1.0

AZ-401: Retention for Pipeline Outputs and Release Dependencies

AZ-401: Retention for Pipeline Outputs and Release Dependencies

Retain enough evidence to identify and explain a release, and enough accessible dependencies to carry out its approved recovery procedure. Configure the applicable control for each storage owner, then verify what a real consumer can still retrieve. An Azure Pipelines run-retention setting does not govern feed packages, registry images, deployed application state or every dependency needed to recover a workload.

This procedure inventories those separate objects and uses the documented manual retain control on one owned nonproduction Azure Pipelines run. It then checks evidence availability, distinguishes documented deletion effects from observed results, and restores only temporary test changes. No retention setting, deletion, package retrieval or recovery operation was executed for this explanation.

Start with a release whose identity is already known

Use Release Identity with Tags SemVer CalVer and Artifacts to establish the actual source revision, run, package version and output identity. Package Feeds Views and Upstream Dependency Sources establishes the real distribution path. YAML Triggers Job Dependencies and Parallel Execution provides the execution context; a similar run name is not proof that the same graph produced the selected output.

Choose an existing authorized nonproduction release candidate and a run whose ownership is clear. Obtain the owners' agreement on the evidence needed, its intended lifetime and any test changes. Do not use a production recovery run as disposable demonstration material.

Record:

  • The source revision, pipeline definition/revision, exact run identifier and actual result.
  • The test-result, log and artifact records associated with that run.
  • Each required package version or image identity, its actual storage location and permitted consumer.
  • The configuration and external dependencies needed to use that candidate again.
  • The audit or investigation questions the retained evidence must answer.
  • The recovery procedure, acceptable candidate age and responsible owner.
  • Existing retention settings, holds, permission boundaries and the intended restored state.

Use identifiers and actual content evidence, rather than captions such as latest successful build. A record that identifies a missing package remains useful for traceability, but it cannot supply that package for deployment.

Inventory the objects under their real owners

Create one dependency record for the candidate, with a separate row for each object. The following table is an inventory model, not a claim that all these objects have one policy:

Object What to identify Availability question
Pipeline run and logs Exact run, source revision and execution evidence Can the investigator still inspect why this run passed or failed?
Test data Actual result set and its relation to this revision Are the decisive results still accessible, rather than only a green summary?
Pipeline/build artifact Exact output and content identity Can the approved consumer obtain the intended bytes?
Feed package version Feed, package/version, stored origin and consumer view Can the required version and its dependency graph still resolve?
Registry image Registry, exact image identity and permitted reader Can the approved deployment path still obtain the intended image?
Deployed state and dependencies Runtime configuration, data state and external requirements Can the recovery procedure use this candidate safely now?

The run, its output and a separately published package can refer to the same software while having different storage owners. A deployment may continue running after its source package disappears; that observation does not prove the package can be downloaded again. Likewise, a package may remain available after the run that explains its validation has been removed.

For each row, record an owner, chosen lifetime or review point, applicable control, retrieval method and evidence of the last availability check. Treat unknown ownership or an untested dependency as an explicit gap.

Choose lifetimes from the intended decision

Work backward from the audit and recovery questions. The following are engineering recommendations to agree with the owners, not vendor-mandated retention durations:

  • Keep the evidence needed to explain a release for the organization's actual investigation and audit period.
  • Keep an approved recovery candidate and its required dependencies while the recovery plan still relies on them.
  • Reassess older candidates when configuration, data formats, infrastructure or external dependencies change.
  • Remove unnecessary data only after checking consumers, holds and the agreed evidence obligations.

Do not invent a universal number of days from an exam objective or a storage budget. Longer retention can preserve an old result without making it compatible with the current workload.

Include identity and access in that assessment. A dependency may still exist but be unavailable to the recovery actor. A required license or service entitlement may have changed. Preserving a binary does not preserve permission to use it, access to an external service or the data state it expects. Have the respective owners resolve those questions rather than treating a storage setting as an answer.

Inspect the Azure Pipelines policy before adding a hold

In the existing Azure DevOps project, inspect Project settings, then Pipelines, Settings. Record the applicable run-related retention values and recent-run controls. Verify the actual operator's permissions and applicable access requirements before attempting a change.

Azure Pipelines run-retention policies are configured at project level; obsolete per-pipeline retention rules are not a supported YAML alternative. Classic release retention is a separate settings area. Do not copy a Classic release setting into a multistage YAML design and assume it has the same effect.

This exercise leaves project-wide settings unchanged. A temporary policy reduction could affect unrelated pipelines and delete evidence outside the chosen test. Instead, use the documented individual run-retain control below.

Configure the bounded manual run-retain control

Select one existing owned nonproduction run that contains the intended harmless test output. Confirm its identifier, source revision and current state against the dependency record before using any menu action.

  1. Open that run's details page and record whether it is already retained and whether an existing release or other owner depends on it.
  2. Open More actions and use the manual retain control to mark this run for indefinite retention.
  3. Reopen or refresh the run details and inspect the actual saved retention state.
  4. Record the actor, run identifier, observation time and before/after state.
  5. Inspect the selected logs, test records and artifacts and verify their current availability through the permitted consumer.

Stop if the actual control or required authority is unavailable. Do not substitute a guessed retention API, lease version or pipeline command. If the run was already retained for another purpose, preserve that state and record that this exercise introduced no new hold.

The documented indefinite-retention behavior exempts that run from the applicable retention policy until indefinite retention is stopped. It does not establish immunity to every deletion path, preserve an external registry or guarantee that every component of a recovery plan remains usable. Inspect the actual retained evidence rather than inferring it from a flag alone.

Give the hold an owner and a review point. Indefinite is a control state, not a reason to forget the candidate's ongoing cost, access and recovery relevance.

Check packages, images and deployed dependencies separately

Run retention does not govern Universal Packages, NuGet, npm or other feed packages. For the candidate's package, inspect the actual feed/version, relevant controls, effective access and dependency graph independently. Use the existing approved client and authorized reader from the distribution procedure; do not invent a new publish or cleanup command here.

An Azure Artifacts view communicates a selected set of package versions and quality decisions. A release view is not a backup policy, a direct publish target or proof that every required dependency will remain available. Saved upstream packages and directly published packages also have distinct origins to record.

Feed-level deletion is an owner-controlled operation with availability consequences. Do not delete a feed to test run retention or assume that a recovery window makes deletion harmless. Public-feed access also has a lifecycle boundary: existing public projects convert to private starting in 2027, so anonymous access is not an enduring recovery assumption.

For GitHub Packages and container images, inspect the actual registry, identity/permissions, package metadata and account conditions. The accepted package introduction does not establish one universal retention period, cleanup rule or restore guarantee for every registry. Record the actual applicable controls before proposing a cleanup action.

Finally, verify the deployment's dependencies against the recovery record. Retained code and packages do not reverse a data migration, restore lost external state or prove compatibility with current configuration. Ordered Deployments Hotfixes and Workload Recovery owns the actual recovery execution and health decision. This availability procedure records what that operation can depend on.

Verify deletion effects without sacrificing recovery evidence

Azure's retention documentation states that deleting a run removes its associated logs, pipeline/build artifacts, test results and run metadata, among other run-related data. Expected retention-policy deletion is not a recoverable archive operation. Use that documented scope to identify which rows in the dependency record would be lost.

Then distinguish three evidence levels:

Evidence level What it establishes
Current availability inspection The selected object was accessible to the recorded actor at the observed time
Documented deletion scope The platform's stated impact for that kind of run deletion
Authorized disposable deletion test The actual result of deleting that separate test run and inspecting its objects

Do not relabel the first two as an executed deletion test. If the owner authorizes empirical verification, use a second wholly disposable run with no needed recovery evidence, release dependency or sole copy of required output. Record its harmless objects and independent package references before deletion.

On that second run's details page, use the documented More actions deletion control only after confirming its exact identity and any applicable retention must be removed. Inspect the resulting run state and whether its former log, test and artifact records can still be accessed. Separately inspect the independently stored test package or image through its existing permitted consumer. Record each result; neither survival nor loss in one store proves the policy in another.

Never remove a real recovery hold, delete a production candidate or weaken project-wide rules to manufacture the example. If a safe disposable test cannot be authorized, preserve the documented impact and mark empirical deletion verification untested. Do not invent output or promise that a deleted run can be recovered later.

Restore only the temporary retention change

Compare the selected first run with its recorded starting state. If this exercise alone introduced its manual hold, use the run's supported control to stop that retention only when its owner confirms no recovery or audit need relies on it. Otherwise, retain the hold and document the owner's decision.

If the run was already retained, leave that existing control intact. Do not remove a release's hold or another person's retention requirement as cleanup. Project-level policies were not changed by this procedure, so there is no reason to edit them during restoration.

After the agreed change, inspect the actual run state and recheck the evidence that must remain available. Removing a hold can make a run eligible for later cleanup; it does not restore any data already removed. Do not manually delete the first run merely to make the end state look tidy.

Keep the inventory, configuration observations, permitted retrieval results, documented deletion impact and any untested cases together. The resulting record should explain what can still be investigated or redeployed, who owns each availability decision and which recovery assumptions remain unproven.

Authoritative Sources

0 views