It was a tense finish, but City of Armagh bagged themselves a vital result as they got the better of Terenure College by 31-29 at the Palace Grounds.