An Azure service that provides a registry of Docker and Open Container Initiative images.
Hello @Shende, Toyesh (DDC Delivery)
Thanks for the detailed log — that pinpoints it, and I understand how blocking this is when you're just trying to build an image.
Good news first: there's nothing wrong with your command or your Dockerfile. az acr build doesn't build locally — it hands the build to ACR Tasks, which runs in the cloud. The TasksOperationsNotAllowed error means the service is declining to run that cloud task for your registry.
Root cause: Azure Container Registry is currently pausing ACR Task runs that are funded by Azure free credits (Free Trial, Azure for Students, or promotional credits). That's exactly why your context uploads successfully and then the request is rejected right before the build starts. This is a platform-side restriction, confirmed in the official docs:
"Azure Container Registry task runs are temporarily paused from Azure free credits." — ACR Tasks overview
You can confirm your subscription type with:
az account show --query "{name:name, state:state, id:id}"
Two ways forward:
- Permanent fix move the subscription to Pay-As-You-Go This is what resolves the error for others hitting it, because it lifts the free-credit restriction on ACR Tasks. Your resources stay intact — it's a billing-plan change: Upgrade your Azure account. One thing to be aware of: switching the plan itself isn't charged, but Pay-As-You-Go removes the free-credit cushion, so actual resource consumption (including ACR Task build minutes) will bill to your payment method going forward. After upgrading, your existing command works unchanged:
az acr build --registry $env:ACR_NAME --image $env:CONTAINER_IMAGE --file api/Dockerfile api/
- Immediate workaround : build locally with Docker and push If you can't change the plan right now and have Docker running locally (this won't work in Azure Cloud Shell, which has no Docker daemon), you can bypass ACR Tasks entirely:
az acr login --name $env:ACR_NAME
docker build -t "$($env:ACR_NAME).azurecr.io/$($env:CONTAINER_IMAGE)" -f api/Dockerfile api/
docker push "$($env:ACR_NAME).azurecr.io/$($env:CONTAINER_IMAGE)"
az acr repository list --name $env:ACR_NAME --output table
Same result (image in your registry), without using cloud tasks.
If your subscription is already Pay-As-You-Go and you still see this, then it isn't the credit restriction — in that case, file an Azure support request for registry acr6bb20cda as the error suggests so we can review the block on that specific registry.
To help me confirm: is this subscription a Free Trial / Azure for Students, or already Pay-As-You-Go? That tells us immediately whether option 1 is your fix.
Links:
https://learn.microsoft.com/en-us/azure/container-registry/container-registry-tasks-overview
https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-docker-cli?tabs=azure-cli
https://learn.microsoft.com/en-us/cli/azure/acr?view=azure-cli-latest#az-acr-build
Thanks,
Manish.