Ahead of the 2016/17 season, he had moved to Andhra Pradesh mainly for better prospects. He went on to debut for India in Test cricket in 2018 while being a part of Andhra in domestic cricket. In 12 Test matches, Vihari has scored 624 runs at an average of 32.84 with one century and four half-centuries to his name. He was a member of the Indian team for the five-match Test series against England, where he didn't get a chance to play a single Test.