How to fix (TasksOperationsNotAllowed) ACR Tasks requests for the registry <containerRegistryName> and <password> are not permitted.

Md Shahedur Rahman 5 Reputation points
2024-02-12T14:12:20.6366667+00:00

When running the following command on Azure Cloud Shell getting the TasksOperationsNotAllowed error. How to fix?

Command:
az acr build --registry $REGISTRYNAME --image expressimage .

Errror:
(TasksOperationsNotAllowed) ACR Tasks requests for the registry <containerRegistryName> and <password> 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 <containerRegistryName> and <password> 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.
465 questions
Azure Cloud Services
Azure Cloud Services
An Azure platform as a service offer that is used to deploy web and cloud applications.
704 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,241 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Owais Iqbal 20 Reputation points
    2024-02-14T16:44:18.1433333+00:00

    Okay 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

    4 people found this answer helpful.

  2. KarishmaTiwari-MSFT 20,212 Reputation points Microsoft Employee
    2024-02-21T00:52:50.6533333+00:00

    @Md Shahedur Rahman 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. Accepted answers show up at the top, resulting in improved discoverability for others.

    Issue: When running the following command on Azure Cloud Shell:
    az acr build --registry $REGISTRYNAME --image expressimage Getting an Error:
    (TasksOperationsNotAllowed) ACR Tasks requests for the registry <containerRegistryName> and <password> are not permitted.

    Solution:
    UPDATE 3/4/2024: Looks like it is related to Trial subscriptions. Upgrading the plan to Pay as you go did resolve the issue for customers.

    2/20/2024: Customer shared -

    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


    If your issue remains unresolved or have further questions, please let us know in the comments how we can assist. We are here to help you and strive to make your experience better and greatly value your feedback.

    4 people found this answer 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.