Paul Goldschmidt also drove in a run for the Diamondbacks, winners in three straight.
Josh Collmenter (1-2) picked up his first win of the season after scattering four hits over six scoreless innings. He fanned five without issuing a walk.
Addison Reed notched his sixth save of the season despite allowing a run in the ninth inning.
Roberto Hernandez (1-1) allowed four runs on seven hits over six innings to absorb the loss.