TasksOperationsNotAllowed error using free azure account as owner from azure cli in wsl2 ubuntu

michael andersson 0 Reputation points
2025-01-05T13:44:43.71+00:00

I am logged in to Azure cli installed in wsl2 default ubuntu newly installed in a fresh windows 11 using an account with "roleDefinitionName": "Owner".

I am trying to follow some Microsoft tutorials about Azure container apps. Whenever I try to use az acr build or az containerapp up I get the error TasksOperationsNotAllowed. I have tried to log in to ACR using the enabled admin account as well, but same error.

The only way I can get images into acr is by first building them locally with docker and then tagging them to include the full name of the registry and then push (not completely sure if I must also use acr admin account for it to work).

Most of these Microsoft tutorials include only the az acr commands that give rise to the TasksOperationsNotAllowed error.

I use miniconda on my machine and had troubles installing azure cli any other way but into wsl ubuntu as I got a pip error when trying to install extensions for azure cli. I could use Azure powershell instead of azure cli, but many tutorials only give commands in azure cli format.

I have googled this and asked chatgpt but can not find a solution to allow az acr build to work from my setup.

Grateful for any help with this

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
474 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
494 questions
{count} votes

1 answer

Sort by: Most helpful
  1. michael andersson 0 Reputation points
    2025-01-05T15:22:31.2133333+00:00

    Just to let anyone having the same problem know that, on this page:

    https://learn.microsoft.com/en-us/azure/container-registry/container-registry-tasks-overview

    it says that "Azure Container Registry task runs are temporarily paused from Azure free credits".

    I can confirm that az acr build command works using my setup after converting my subscription to pay as you go.


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.