How to Build and push Container Image in Azure Container Registry from Azure CLI.

Olle Carlberg 0 Reputation points
2024-07-28T13:28:10.5+00:00

https://learn.microsoft.com/en-us/training/modules/publish-container-image-to-azure-container-registry/6-build-run-image-azure-container-registry

In this Exercise it asks me to Build and push image from a Dockerfile.

When I run this which is the second step to the exercise linked above:

az acr build --image sample/hello-world:v1 \ --registry <myContainerRegistry> \ --file Dockerfile .

I get this error in the Azure CLI (Bash):

(TasksOperationsNotAllowed) ACR Tasks requests for the registry <myRegistryName> and 1234hu-k12j3rm-jh<sefu-jhwekfjh 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 carlbergsacr and d15a8485-838e-44be-a728-47df960eab1e are not permitted. Please file an Azure support request at http://aka.ms/azuresupport for assistance.

Target: request

I'm only following the "tutorial" I did echo inside the the Azure CLI and then tried building and pushing the image from there as well. I am running a free subscription which is a prerequisite but I am afraid I might need a "pay-as-you-go" subscription.

Thanks!

This question is related to the following Learning Module

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
429 questions
Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,319 questions
0 comments No comments
{count} votes