I would like to automatically invalidate the (cdn) cache for objects changed by invoking the command az storage blob sync
. Therefore I would need the list of files touched by sync.
The best option I have found is to give it the verbose flag, parse the generated log file and apply a filter to get the files touched. This feels a bit hackish so I was wondering if there is a better option.
You can just filter files by last modified time, and based on your research, az sync
also relies on modified times and meets your requirements here.