BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Versioning pipeline artifacts
Lesson208 words

Versioning pipeline artifacts

Design a versioning strategy for pipeline artifacts

An artifact version must let you answer, months later: which commit produced this, and which run?

Run numbers

yaml
name: $(Date:yyyyMMdd)$(Rev:.r)

name sets the run number (Build.BuildNumber). $(Rev:.r) is the auto-incrementing counter that resets when the rest of the name changes — which is how you get 20260805.1, 20260805.2 within a day.

Available tokens include $(Date:...), $(Rev:.r), $(BuildID), $(SourceBranchName). Note Build.BuildId is a globally unique integer while Build.BuildNumber is the formatted name — they are not the same and are easily confused.

What a good scheme carries

ElementWhy
Commit SHAThe only unambiguous link back to source
Semantic or calendar versionHuman meaning
Run identityLinks to logs, test results, approvals

Embedding the SHA is the non-negotiable part. A version like 2.4.1 alone cannot tell you which of three rebuilds produced the binary in production.

Immutability

Publish once, promote thereafter. Rebuilding to produce "the same" version breaks traceability just as surely as re-pushing a container tag — which is why build once, deploy many and artifact versioning are really the same discipline seen from two angles.

Primary sources

  • https://learn.microsoft.com/en-us/azure/devops/pipelines/process/run-number
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/artifacts/pipeline-artifacts
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure421 words
  • Agent and runner infrastructure — quick notes150 words
  • Alerting on pipeline events255 words
  • Alerting on pipeline events — quick notes94 words
  • Analyzing usage and application performance241 words
  • Analyzing usage and application performance — quick notes73 words
  • Appropriate access levels217 words
  • Appropriate access levels — quick notes85 words
  • Automating container scanning277 words
  • Automating container scanning — quick notes96 words
  • Automating documentation from Git history191 words
  • Automating documentation from Git history — quick notes55 words

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Designing and Implementing Microsoft DevOps Solutions (AZ-400) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.