The present Pazhavangadi Sree Mahaganapathy Temple at Thiruvananthapuram is closely associated with annals of the Travancore Army. According to legend, one of the duty sentries of Travancore Army found a very small idol of Lord Mahaganapathy from the riverbed of Valliyoor river. Thereafter, the idol was kept in barracks of the soldiers at Padmanabhapuram and they started worshiping it. During the reign of Rama Varma the capital of Travancore shifted from Padmanabhapuram to Thiruvananthapuram in 1795.

Sree Mahaganapathy Temple
A major portion of the Army was also moved to Thiruvananthapuram. The idol of Lord Mahaganapathy was also taken there and with the generous help of the King, a small shrine was built in the magazine area located in the Fort. Subsequently, while the Travancore Army was integrated with Indian Army (Now 9 and 16 MADRAS), the Sree Mahaganapathy Temple also came under the management of the Madras Regiment.

This was earlier in the fort area and was later shifted to Pangode where the Garrison was established. The idol of Lord Shiva was later added to the temple. In the South West of Pangode Military Garrison, there was an ancient idol of Lord Krishna. This was immersed in the sea in 1986 as it had some damages and in the same year an idol of Lord Maha Vishnu was added to the Hanumanswamy temple. In 1988 , Lord Ganapathy idol also was installed in the same temple. The temple is now being relocated within the Pangode Military Station.
Sree Hanumanswamy Temple
Sree Mahaganapathy Temple and Sree Hanumanswamy Temple in Thiruvananthapuram are managed by the Regimental Centre through an Apex Body, an Advisory Committee and Thiruvathira Committee. The revenues from the temple are used for a large number of welfare activities.