The induced thermal stress in a heating process is an important parameter to be known and controlled in the magnetization process of core-shell nanowires. This paper analyses the stress produced by a laser heating source placed at one end of a core-shell type structure. The thermal field was computed with the non-Fourier heat transport equation using a finite element method (FEM) implemented in Comsol Multiphysics. The internal stresses are essentially due to thermal gradients and different expansion characteristics of core and shell materials. The stress values were computed using the thermo elastic formalism and are depending on the laser beam parameters (spot size, power etc.) and system characteristics (dimensions, thermal characteristics). Stresses in the GPa range were estimated and consequently we find that the magnetic state of the system can be influenced significantly. A shell material as the glass which is a good thermal insulator induces in the magnetic core, the smaller stresses and consequently the smaller magnetoelastic energy. These results lead to a better understanding of the switching process in the magnetic materials.