Mechanical foundations and pavements design need a perfect prediction of the response of the material to reach a reliable and safe structure. This work deals with the thermoelastic response of microbeams rested on a two-parameter viscoelastic foundation due to a magnetic field in the context of the dual - phase lag thermoelasticity model. The solutions of the governing equations are attained using the Laplace transform method. The distributions of the deflection, temperature, the displacement and the flexure moment of the micro beam are numerically obtained and illustrated graphically. The effects of the magnetic field, Winkler and shear foundation parameters, the ramping time parameter and the models of thermoelasticity on the considered fields are concerned and discussed in details. For comparison purposes, the response of the micro beam and the dynamic deflection using the Bernoulli- Euler beam and thermoelasticity theories are compared with earlier investigated studies and magnificent agreements are detected.