ACR Tasks requests for the registry <REGISTRY NAME> and <SUBSCRIPTION ID> are not permitted. Why not?

668 0 Reputation points
2025-06-25T12:59:21.6966667+00:00

I'm learning my way in Azure. I'm following a tutorial to upload a Dockerfile into my container registry in Azure from VSCode.

As far as I can tell, I have met all of the requirements:

Active Azure subscription (Free Trial fwiw)
Container Registry has been created
I have added Admin User and Contributor to my user.
VSCode is logged in to Azure, it can see my Subscription and Container Registry.

But when I try to Build Image in Azure, I just get the old ACR Tasks for the registry <REGISTRY NAME> and <SUBSCRIPTION ID> are not permitted.
The Registry name is correct, and so is the Subscription ID.

Other similar posts in here have not been too helpful, apart from assisting in confirming the above.

What am I missing?

It's probably something small, but maybe that's why I can't see it...

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

1 answer

Sort by: Most helpful
  1. Aslam Mohammad 405 Reputation points Microsoft External Staff Moderator
    2025-06-25T15:54:00.3733333+00:00

    Hi 668

    I understood that when trying to use ACR Tasks from a subscription where it is not enabled or allowed, especially with a Free Trial subscription.

    Use Local Build Instead of ACR Tasks

    Login to your ACR

    az acr login --name <yourRegistryName>

    Build the Docker image locally

    docker build -t <yourRegistryName>.azurecr.io/your-image-name:tag .

    Push it to ACR

    docker push <yourRegistryName>.azurecr.io/your-image-name:tag

    Use Azure CLI Instead of VSCode Extension and Upgrade to a Pay-As-You-Go Subscription

    Ensure Permissions Are Correct, and user should be assigned at least AcrPush or Contributor role on the registry.

    If you have any further queries, let me know. If the information is helpful, please click on Upvote.

    Thank you.

    1 person found this answer helpful.
    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.