Facing issue with acr task

SD 0 Reputation points
2024-06-02T15:05:04.75+00:00

Facing the following issue while build the image by using the Azure Container Registry task

(TasksOperationsNotAllowed) ACR Tasks requests for the registry <> and <> 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 <> and <> are not permitted. Please file an Azure support request at http://aka.ms/azuresupport for assistance.

Target: request

Any help will be appreciated.

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

1 answer

Sort by: Most helpful
  1. akinbade abiola 18,720 Reputation points
    2024-06-02T16:03:54.7666667+00:00

    hello SD,

    Thanks for your question.

    This looks like a subscription issue. It usually happens if you have a student or Free trial Subscription.

    You can attempt this workaround:

    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

    This information is detailed in a similar thread here: https://learn.microsoft.com/en-us/answers/questions/1530524/how-to-fix-(tasksoperationsnotallowed)-acr-tasks-r

    Please let me know if you have further questions**

    You can mark it 'Accept Answer' if this helped.

    0 comments No comments

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.