This article is concerned with the problem of thermoelastic equilibrium of cylinders with microstructure under action of a temperature variation that is a polynomial in the axial coordinate. The cylinder is occupied by different thermoelastic materials.