Currently we are configuring Azure ACR and it has some repositories each of repository consists of images.
Images are locked and tagged in incremental by numbers. Every time developers push their code, an image is created in Azure ACR repository.
We need to configure cleaning of this image, but we can't delete everything because there is a chance that image will contain some information needed for development.
Is there possibility to monitor used space by repository? - I can see used space on all Azure ACR, but I need to see and repository instead.
How could I automate repository image cleaning? - for steps would be (1. unlock image, 2. un-tag image 3. purge image 4. purge is initiated by date) - this probably is not possible from azure UI interface? Azure CLI?
How could I identify that I could remove this Image and that would not damage all production environment?
Also this should be monitored by used space and make alerting to notify users, that it's time to clean up some space in repo.