Upamanyu – the son of sage Vyaghrapaad, was brought up in his maternal uncle's home since his childhood. One day Upanyu he was crying for milk when his mother told him that if he wanted milk then he should worship lord Shiva as he only was capable of making the milk available. Upamanyu proceeded towards the Himalaya and started doing penance to please lord Shiva. His penance generated so much of heat that all the three worlds started burning.
To test his devotion, Lord Shiva and goddess Parvati appeared before him disguised as Indra and Indrani respectively. Both of them told Upamanyu to stop doing penance. They said “We Indra and Indrani are extremely pleased by your devotion. Stop worshipping Shiva. We will fulfill all your desires.” Lord Shiva and goddess Parvati did not stop at this. They even cursed Shiva. Upamanyu became very furious and got up to attack the abuser – Indra.
Shiva and Parvati were satisfied by his total dedication and devotion. They revealed their real identity and blessed him. Shiva promised Upamanyu that he would be present in the vicinity of his hermitage along with Parvati forever. Upamanyu returned back to his home and narrated the whole story to his mother who was very pleased. Lord Shiva got the name 'Sureshwar' because he appeared in the guise of Indra.