Miley (4-1) scattered eight hits and struck out five in the win, which ended the Diamondbacks' three-game losing streak.
Mark Ellis homered for the Dodgers, who had a five-game winning streak come to an end.
Chad Billingsley (2-3) took the loss, giving up four runs on eight hits over four-plus innings. Billingsley allowed a run in the second inning and then surrendered three in the fifth on RBI singles by Justin Upton, Montero and Kubel.
Duggar sisters unveil Christian dating rules in new book
Attkisson leaves CBS News, reportedly over network's 'liberal bias'