StudyToCert

All certifications / AI-200 / Lessons

Microsoft Certified: Azure AI Cloud Developer Associate AI-200 (replaced AZ-204) · Domain 1: Develop containerized solutions on Azure

Tags vs digests, stable vs unique tags, and cleaning up old images with `az acr repository` and purge tasks

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

Every image in a registry can be named two ways. A tag is a friendly sticky label, like 'latest' or '1.4', and sticky labels can be peeled off and stuck on a different box. A digest is like the box's fingerprint, a long code calculated from its exact contents, so it can never point to a different box. If you tell your servers to use the box labeled 'latest' and someone moves the label, new servers grab a different box. That is why deployments should use labels that are used once and never moved, such as a build number. Those one-time labels pile up, so you also set up a regular cleanup that throws out old boxes nobody needs.

At 4:40 p.m. on a Friday, the support queue at Bluepine Insurance lights up: about one in five customers sees an old quote page, the rest see the new one. Dev, the on-call engineer, checks the Container App and finds six replicas, all supposedly running quotes-api:latest. Four started this morning; two started an hour ago during a scale-out, right after someone pushed a new build that also took the latest tag. Same tag, two different images, and no record of which one was meant to be in production. Meanwhile, the registry bill has crept up every month because nothing is ever deleted. Can you name exactly what is running, and how would you keep the registry from growing forever?

Every image in a registry has two kinds of names, and the difference drives the whole lesson. A tag is a human-friendly, mutable label such as orders-api:1.4 or orders-api:latest. A digest is a SHA-256 (Secure Hash Algorithm, 256-bit) hash of the image manifest, written like orders-api@sha256:..., and it is immutable: the same digest always refers to exactly the same bytes. A tag is a pointer that can be moved to a new image at any time; a digest can never change. When you push, the output shows both, and az acr repository show-manifests lists each digest with the tags currently pointing at it.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study AI-200 for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the AI-200 study plan