Lilly (10-12) gave up a run and four hits with two walks and nine strikeouts while Matt Kemp hit a two-run home run for the Dodgers (80-82), who closed out the season with wins in five of their final six games to send Torre away on a high note.
Torre announced a month ago that he will be leaving the team after the end of the season and hitting coach Don Mattingly will take over. Torre departs with a mark of 259-227 over his three seasons. LA won two NL West crowns and took a pair of trips to the NLCS in 2008 and 2009, but were beaten by the Phillies both times.
The Dodgers got on the board in the first inning as Andre Ethier singled with one out and Kemp followed with a shot over the left-center wall for a 2-0 lead.
The Diamondbacks got one back in the fourth when Rusty Ryal doubled to lead off the frame and later scored on a Parra single.
Ethier gave Los Angeles some breathing space in the seventh as his RBI double scored Reed Johnson.
The Dodgers took 13 of the 18 contests with Arizona this season...Los Angeles catcher Brad Ausmus announced his retirement prior to the game after 18 seasons in the majors...Kemp finished the season with a career-high 28 home runs.