A variational principle is proposed which allows to derive the equations of motion for a dissipative fluid with general microstructure. The only constitutive ingredients are the densities of the free energy and the dissipation, both subject to appropriate invariance requirements. The strict interplay between the microstructures considered here and those studied by Capriz is also examined in some detail