Diamondbacks starter Robbie Ray allowed two runs and five hits in six innings. He struck out nine and walked three.