How do I fix TasksOperationsNotAllowed

Omoruyi Aroloye 10 Reputation points
2024-05-29T22:55:36.5166667+00:00

(TasksOperationsNotAllowed) ACR Tasks requests for the registry tcbomoruyiemmanuel and c35e564c-73ba-40d2-89a7-757bf4571f71 are not permitted. Please file an Azure support request at http://aka.ms/azuresupport for assistance.

Code: TasksOperationsNotAllowed

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
465 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,011 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Omoruyi Aroloye 10 Reputation points
    2024-06-07T11:17:40.57+00:00

    I did try all the steps above and I encountered same error. I have been able to resolve it by upgrading to Pay-As-You-Go. I did nothing else and It worked. Thanks

    1 person found this answer helpful.

  2. Andriy Bilous 11,431 Reputation points MVP
    2024-05-30T04:26:43.9133333+00:00

    Hello Omoruyi Aroloye

    The error message "TasksOperationsNotAllowed" means that ACR Tasks requests for the registry and password are not permitted.

    If the user account does not have the required permissions, you need to grant the necessary permissions to the user account.

    You need to enable the "Admin user" option for the container registry. This option allows you to authenticate with the registry using a username and password. To enable this option, follow these steps:

    1. Go to the Azure portal and navigate to your container registry.
    2. Click on "Access keys" under "Settings".
    3. Toggle the "Admin user" option to "Enabled".
    4. Copy the username and password values displayed on the page.
    5. Use these values to authenticate with the registry in your command. enter image description here

    Try to push image into you registry.

    az login
    az acr login --name
    
    docker tag <the_name_you_want_to_show_in_ACR> <youracrname>.azurecr.io/<the_image_name_which_you_built>
    
    docker push <youracrname>.azurecr.io/<the_name_you_want_to_show_in_ACR> 
    
    

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


  3. kobulloc-MSFT 26,351 Reputation points Microsoft Employee
    2024-06-06T18:35:19.85+00:00

    Hello, @Omoruyi Aroloye ! We received your feedback and want to make sure that your issue has been resolved.

    How do I fix TasksOperationsNotAllowed?

    Alternate causes include an issue related to trial subscriptions:

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

    I found a 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

    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image


  4. kobulloc-MSFT 26,351 Reputation points Microsoft Employee
    2024-06-07T17:14:52.7+00:00

    Hello, @Omoruyi Aroloye !

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue:

    (TasksOperationsNotAllowed) ACR Tasks requests for the registry tcbomoruyiemmanuel and c35e564c-73ba-40d2-89a7-757bf4571f71 are not permitted. Please file an Azure support request at [http://aka.ms/azuresupport] for assistance. Code: TasksOperationsNotAllowed

    Solution (provided by Omoruyi Aroloye):

    I did try all the steps above and I encountered same error. I have been able to resolve it by upgrading to Pay-As-You-Go. I did nothing else and It worked. Thanks

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    User's image

    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.