It is not permitted to build and upload images to my acr

Oscar Buse 20 Reputation points
2025-01-14T09:34:51.0433333+00:00

Dear AZ-ers,

My command and output:

az acr build --registry Azureosbus --image aks-store-demo/product-service:latest ./src/product-service/

Packing source code into tar to upload...

Excluding '.gitignore' based on default ignore rules

Uploading archived source code from '/tmp/build_archive_6b6ade686ad0478d88172e2f13306b47.tar.gz'...

Sending context (1023.062 KiB) to registry: Azureosbus...

TasksOperationsNotAllowed - ACR Tasks requests for the registry Azureosbus and e4000edc-50a0-4d8d-aac6-433a48b4c05d are not permitted. Please file an Azure support request at http://aka.ms/azuresupport for assistance.

I have a free account just to try out Azure's ACR (and AKS).

I granted admin privileges conform https://stackoverflow.com/questions/77982084/how-to-fix-tasksoperationsnotallowed-acr-tasks-requests-for-the-registry-cont

After logging out of the cli and login again and also do "az azr login... " with the admin credentials I still have no permission to do the "az acr build.."

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
478 questions
0 comments No comments
{count} votes

Accepted answer
  1. Mounika Reddy Anumandla 1,955 Reputation points Microsoft Vendor
    2025-01-15T06:23:50.2033333+00:00

    Hi Oscar Buse,

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    As mentioned in this document, ACR is temporarily pausing ACR Tasks runs from Azure free credits. az acr build command works after converting my subscription to pay as you go.

    User's image

    As a work around please try the below and see if that helps.

    Work around using docker CLI commands:

    1. Login to the ACR using az acr login -n $ACRNAME -p <password>
    2. Tag the image first- docker tag <image name>:latest <ACR registry name>.azurecr.io/<image name>
    3. Push the image to ACR from docker - docker push <ACR registry name>.azurecr.io/<image name>

    The images will now appear in your ACR -

    az acr repository list --name $ACRNAME --output table

    Similar issues reported, Ref: https://learn.microsoft.com/en-us/answers/questions/1530524/how-to-fix-(tasksoperationsnotallowed)-acr-tasks-r

    Let me know if you have any further queries!

    If the comment is helpful, please click "upvote" or tag me in the comments section.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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