Hi Inzemam ul haq,
The error message "TasksOperationsNotAllowed" means that ACR Tasks requests for your container registry 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.
If you are using the free trail. As per below documentation. ACR is temporarily pausing ACR Tasks runs from Azure free credits.
As a work around please try the below and see if that helps.
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
Also, I would suggest if you were using an Azure Free Trial, ACR Tasks may be limited. Upgrading to a Pay-As-You-Go subscription can resolve this restriction.
Refer similar issue thread: https://xtls-v4.hkg1.meaqua.org/en-us/answers/questions/1530524/how-to-fix-(tasksoperationsnotallowed)-acr-tasks-r
Hope this helps! Please let me know if you have any other queries.