The X-ray/SZ view of the virial region: I. Thermodynamic properties