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
How do I fix TasksOperationsNotAllowed
(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
4 answers
Sort by: Most helpful
-
-
Andriy Bilous 11,426 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:
- Go to the Azure portal and navigate to your container registry.
- Click on "Access keys" under "Settings".
- Toggle the "Admin user" option to "Enabled".
- Copy the username and password values displayed on the page.
- Use these values to authenticate with the registry in your command.
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>
-
kobulloc-MSFT 26,346 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:
I found a work around using docker ClI commands -
- Login to the ACR using
az acr login -n $ACRNAME -p <password>
- Tag the image first-
docker tag <image name>:latest <ACR registry name>.azurecr.io/<image name>
- 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!
- Login to the ACR using
-
kobulloc-MSFT 26,346 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.