I need a PowerShell script, always keep latest 10 docker image tags in azure container registry and other images need to delete automatically. This script I need to pass via azure pipeline task like AZ CLI inline script. Can any one help me out this.
I need to keep latest 10 docker images
Thanks in advance...

