Share via

az acr build giving TasksOperationsNotAllowed error

2026-06-04T14:47:44.3266667+00:00

i am not able to build image with command

az acr build `

  --registry $env:ACR_NAME `

  --image $env:CONTAINER_IMAGE `

  --file api/Dockerfile `

  api/

giving below log

Packing source code into tar to upload...

Uploading archived source code from 'C:\Users\P50143~1\AppData\Local\Temp\build_archive_2a115270b1b640fe9630ffded547d9f9.tar.gz'...

Sending context (3.108 KiB) to registry: acr6bb20cda...

(TasksOperationsNotAllowed) ACR Tasks requests for the registry acr6bb20cda and 8a985e1b-5327-432c-b505-5cb36f03485b are not permitted. Please file an Azure support request at http://aka.ms/azuresupport for assistance.

Code: TasksOperationsNotAllowed

Message: ACR Tasks requests for the registry acr6bb20cda and 8a985e1b-5327-432c-b505-5cb36f03485b are not permitted. Please file an Azure support request at http://aka.ms/azuresupport for assistance.

Target: request

Azure Container Registry
Azure Container Registry

An Azure service that provides a registry of Docker and Open Container Initiative images.

0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-06-04T14:48:01.29+00:00

    The error indicates that ACR Tasks operations are blocked for this registry, so az acr build cannot run.

    az acr build is implemented as an ACR Task “quick task” that runs the Docker build in Azure. When Tasks are not permitted for a registry, any az acr build or az acr pack build invocation fails before the actual build starts, exactly as shown in the log (context upload succeeds, then the service rejects the task request).

    Because the registry is refusing all ACR Tasks requests, there is no client-side fix in the CLI or command syntax. The only supported resolution is to have the restriction on ACR Tasks removed for that registry by Azure support.

    Practical options:

    1. Open an Azure support request for this specific registry ID and error code so that ACR Tasks can be enabled for it, as the error message instructs.
    2. As a temporary workaround while waiting for support, build and push images using a local Docker engine instead of ACR Tasks:
      • Use docker build -t <registry-name>.azurecr.io/<image>:<tag> .
      • Then docker push <registry-name>.azurecr.io/<image>:<tag>

    Once ACR Tasks are permitted again, the same az acr build command will work and behave as described in the ACR quick tasks and tutorials.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.