When running the following command on Azure Cloud Shell getting the TasksOperationsNotAllowed error. How to fix?
Command:
az acr build –registry $REGISTRYNAME –image expressimage .
Errror:
(TasksOperationsNotAllowed) ACR Tasks requests for the registry and 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 and are not permitted. Please file an Azure support request at http://aka.ms/azuresupport for assistance. Target: request
When running the following command on Azure Cloud Shell getting the TasksOperationsNotAllowed error. How to resolve?
Command:
az acr build –registry $REGISTRYNAME –image expressimage .
Errror:
(TasksOperationsNotAllowed) ACR Tasks requests for the registry and 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 and are not permitted. Please file an Azure support request at http://aka.ms/azuresupport for assistance. Target: request
2
Answers
The error message "TasksOperationsNotAllowed" occurs when ACR Tasks requests for the registry and password are not permitted. To resolve this issue, you need to check if the user account used to authenticate the Azure CLI has the required permissions to perform ACR tasks. If the user account does not have the required permissions, you need to grant the necessary permissions to the user account. You can also try logging out and logging back in to the Azure CLI to refresh the authentication token. 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. To enable this option, follow these steps:
or from Az CLI
az acr build --registry $REGISTRYNAME --image expressimage --username <username> --password <password> .
Once done, you can push your image into you registry and deploy accordingly
References:
Heyy
I followed this instruction:
az acr build –registry $REGISTRYNAME –image expressimage –username –password .
But received eunrecognized arguments: –username chasexxxxxx –password xxxxxxxxxxxxx
How to deal with this? qaq