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.
Celebrity Breakups and divorces of 2014 [PHOTOS]