@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 -
- 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
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.