BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Deploying containers, binaries and scripts
Lesson225 words

Deploying containers, binaries and scripts

Implement application deployment by using containers, binaries, and scripts

Build once, deploy many

The artifact produced by the build stage is what every environment receives. Rebuilding per environment breaks the guarantee that what you tested is what you shipped.

yaml
- publish: $(Build.ArtifactStagingDirectory) artifact: drop # ...later, in the deploy stage - download: current artifact: drop

Environment differences belong in configuration — variable groups, slot settings, App Configuration — not in separate builds.

The three shapes

ShapeImmutabilityNotes
Container imageHighest — image digest pins the whole userlandPromote the same digest through environments; a re-pushed :latest tag breaks the guarantee
Binary / packageGood — versioned artifactFeeds, retention and versioning via Azure Artifacts or GitHub Packages
ScriptLowest — behaviour depends on the target machineMust be idempotent; pin tool versions

Containers

Tag by immutable identity, not by latest. latest is a moving pointer, so "the image we tested" and "the image we deployed" can silently differ. Promote by digest or an immutable version tag.

Scripts

A script's result depends on the state of the machine it lands on — exactly the self-hosted-agent contamination problem. Idempotency and pinned tool versions are the mitigations.

Primary sources

  • https://learn.microsoft.com/en-us/azure/devops/pipelines/artifacts/pipeline-artifacts
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/process/deployment-jobs
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.