DETROIT -- David Peralta homered to left center in the ninth inning off Detroit closer Justin Wilson, lifting the Arizona Diamondbacks to a 7-6 win over the Tigers on Tuesday night.
Arizona reliever Archie Bradley (2-1) pitched a scoreless eighth to pick up the win. Zack Greinke, who was staked to a 6-0 lead in the third, went 5 2/3 innings and allowed five runs, all unearned, and five hits. Fernando Rodney pitched a scoreless ninth for his 17th save.
Wilson (2-2) took the loss after allowing the homer to Peralta on the first pitch in the ninth. Starter Buck Farmer went 2 1/3 innings and allowed six runs on nine hits. He was 2-0 and had gone 13 straight scoreless innings before Tuesday.
The Diamondbacks jumped on Farmer early, scoring twice in the first inning on Chris Owings' RBI single and Brandon Drury's RBI single.
Arizona added four runs in the third on two-run homers by Paul Goldschmidt and Drury, giving the Diamondbacks a 6-0 advantage.
The Tigers scored all six of their runs in the sixth inning, with help from a throwing error on second baseman Drury, who tried to turn a double play on Alex Avila's ground ball but threw the ball into left field. Ian Kinsler scored on the error and Avila went to second.
Miguel Cabrera followed with an RBI double, then J.D. Martinez hit a two-run homer to make it 6-4. Alex Presley and Jose Iglesias added RBI singles to tie the score.
OF A.J. Pollock (strained right groin) will resume running bases this week and the Diamondbacks would like him to play a few minor league rehab games before rejoining the team. He has been on the DL since the middle of May.
Diamondbacks: RHP Taijuan Walker (4-3, 3.46 ERA) is expected to be reinstated from the 10-day DL after suffering a blister on his right hand. Walker, who won his last start against the Padres on May 19, will face the Tigers in a 7:10 p.m. start on Wednesday.
Tigers: RHP Jordan Zimmermann (5-4, 5.72) is expected to start against the Diamondbacks.