WARNING: This page is about a different car, the 2016 Audi A6 Quattro. However, it is still accessible from the selected car via links, so may be relevant.
Courtesy of AUDI OF AMERICA, LLC
-- Disconnect the connector -1-.
-- Remove the bolt -2- and the Engine Speed Sensor -G28-.