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.