I am trying to create a scheduled ACR task to delete old images from storage using this command:
PURGE_CMD="acr purge --filter 'worker:.*' --untagged --ago 1d"
az acr task create --name remove_old_images_worker --cmd "$PURGE_CMD" --schedule
"0 0 * * *" --registry registry --context /dev/null
But it returns me an error with this:
acb.yaml does not exist.
And what is also interesting is that it worked for a similar task just a couple of days ago.



After some investigation, I solved this problem using Terraform as follows: