Godley, who is competing with Robbie Ray, Archie Bradley and Tyler Wagner for the final spot in the Arizona rotation, allowed seven runs on seven hits over 3 1/3 innings.
It also was not a great day for Brandon Beachy, who is battling Zach Lee and Mike Bolsinger for the last spot in the Dodgers' rotation. The right-hander allowed six runs and walked four in just two-plus innings.
The D-backs cut into the Dodgers' lead with a three-run second and then grabbed a 7-5 lead thanks to a four-run third, which was highlighted by Welington Castillo's two-run double and Evan Marzilli's two-run single. Paul Goldschmidt hit his first home run of the year for the D-backs with a two-run shot in the fifth, while Yasmany Tomas went 3-for-3 with two runs scored in his return to the D-backs' lineup after missing time with a knee injury. Howie Kendrick went yard for Los Angeles in the third.
Up next for the Dodgers:Clayton Kershaw gets the start for the Dodgers, who will be the road team in a Camelback Ranch-Glendale game against the White Sox on Saturday at 1:05 p.m. PT (watch on MLB.TV). It will be Kershaw's fourth start of the spring. In 10 innings he has allowed one earned run with 10 strikeouts and a .216 opponents' batting average.
Up next for the D-backs: The D-backs play host to the Rangers on Saturday at 1:10 p.m. MST with Opening Day starter Zack Greinke on the mound (listen on Gameday Audio). The right-hander is making his fourth start of the spring after signing a $206.5 million contract as a free agent over the offseason. Evan Marshall is also scheduled to pitch as he looks to continue his strong spring and push for the final spot in the bullpen.