Had a search through the forum, a fellow member had a similar issue and it was the injectors:
https://www.audiownersclub.com/forums/topic/27168-rough-idle-sometimes/
Could it be throttle body issue?
https://www.google.com/amp/s/www.audi-sport.net/xf/threads/419589/%3famp=1