Various industrial operations involve frequent heating and cooling of electrical systems. In such circumstances, the development of relevant thermal devices is of extreme importance. During the development of thermal devices, the second law of thermodynamics plays an important role by means of entropy generation. Entropy generation should be reduced significantly for the efficient performance of the devices. The current paper reports an analytical study on micropolar fluid with entropy generation over a stretching surface. The influence of various physical parameters on velocity profile, microrotation profile, and temperature profile is investigated graphically. The impact of thermal radiation, porous medium, magnetic field, and viscous dissipation are also analyzed. Moreover, entropy generation and Bejan number are also illustrated graphically. Furthermore, the governing equations are solved by using HAM and code in MATHEMATICA software. It is concluded from this study that velocity and micro-rotation profile are reduced for higher values of magnetic and vortex viscosity parameter, respectively. For larger values of Eckert number and thermal radiation parameters, Bejan number and entropy generation are increased, respectively. These findings are useful in petroleum industries and engineering designs.