Create a container registry and push an image

Azure Portal, Hands On15 minutesCosts moneySteps checked 25 October 2026By Cloud Hands On

In this task you'll create a container registry.

Azure Container Registry (ACR) is your own private store for container images. Your container services pull images from it, and your build pipelines push new versions into it.

Because it's in Azure, you can give services access with Entra ID and managed identities instead of passwords.

Example. SS Kaiser builds a new image of its shop every time a developer finishes a change, pushes it to acrsskaiser as shop:v42, and its container app pulls that version.

Costs money. A container registry is billed every day it exists, even when empty (the Basic tier costs roughly 17 US cents a day). Creating one, using it for an hour and deleting it costs pennies. Delete it as soon as you've finished.

Before you start

You need: Contributor on the resource group. Time: 15 minutes.

Where to look

  1. Home
  2. Container registries
  3. + Create

Steps

  1. Open Container registries and select + Create.
  2. Choose rg-portal-practice, a name such as acrportal plus your initials and some digits, and your region.Names must be unique across Azure and use only letters and numbers.
  3. Set Pricing plan (or SKU) to Basic, the cheapest tier. Select Review + create, then Create.
  4. Open the registry and copy its Login server, such as acrportalxx01.azurecr.io.
  5. Open Cloud Shell and copy a small public image into your registry:Type az acr import --name <your registry> --source mcr.microsoft.com/azuredocs/aci-helloworld:latest --image hello:v1. Cloud Shell can't run Docker itself, so importing is the easy way in.
  6. Back in the portal, open Repositories under Services and select hello to see the v1 tag.

Commands

# Create a Basic registry
az acr create --resource-group rg-portal-practice --name <registry name> --sku Basic

# Copy a public image into it
az acr import --name <registry name> \
  --source mcr.microsoft.com/azuredocs/aci-helloworld:latest --image hello:v1

# What's inside?
az acr repository list --name <registry name> --output table

# Delete it again
az acr delete --resource-group rg-portal-practice --name <registry name> --yes

Watch out for

Cost
Billed per day for the tier, plus storage over the tier's allowance. Builds with ACR Tasks are billed per second. Delete test registries straight away.
Security
Leave the admin user off. Give services the AcrPull role through a managed identity, and only build pipelines AcrPush.
Common mistakes
Picking Premium for a test, which costs far more per day. Using the latest tag in production, so you can't tell which version is running.

Clean up

  1. Container registries
  2. your registry
  3. Delete

Open the registry, select Delete and confirm, or delete the resource group. Do this as soon as you've finished, because the daily charge keeps running.

Words to know

Repository
A collection of versions of one image inside a registry, such as shop.
Tag
The label for one version of an image, such as v42 or latest.
Admin user
A single shared user name and password for the registry. Off by default, and best left off.

Tick off each step and track your progress in the guide.

Open this task in Azure Portal, Hands On

Keep going