When Narendra Modi became PM in May 2014, the military chiefs invited him to attend various service functions.