Hasaranga keeps Sri Lanka's hopes alive with the wicket of Kohli, who goes back but misses the flick and is struck on the pads to be given out leg before wicket for 24.
Kohli takes the review but the ball has struck in line and going on to hit the stumps.
India are reduced to 130/4 in the 24th over.
An important outing for K L Rahul, who is not only making a comeback to the Indian team but also faces competition from Rishabh Pant for the wicketkeeper's slot.
Rahul keeps out the first three balls before he takes a single.