Matt Moore beats D-backs for first career win at AT&T Park

Arizona Diamondbacks' Rickie Weeks, right, goes sliding to steal second base as San Francisco Giants shortstop Brandon Crawford leaps for the throw in the sixth inning of a baseball game Wednesday, Aug. 31, 2016, in San Francisco. (AP Photo/Eric Risberg)
Eric Risberg/AP

SAN FRANCISCO (AP) Matt Moore struck out seven over 5 1-3 innings for his first career victory at AT&T Park, and the San Francisco Giants beat the Arizona Diamondbacks 4-2 on Wednesday.

Moore walked off in the sixth to a standing ovation from the sellout crowd. The left-hander had lost his initial two home starts since being acquired from Tampa Bay.

Moore (2-3) looked strong in his first game since losing a no-hit bid with two outs in the ninth inning at Dodger Stadium.

Buster Posey drove in a pair of runs for San Francisco, which is in second in the NL West behind Los Angeles.

Santiago Casilla relieved Sergio Romo with the bases loaded and two outs in the eighth and struck out Yasmany Tomas. Casilla finished for his 29th save.

Shelby Miller (2-10) was called up from Triple-A Reno to start. He allowed two runs and six hits in six innings.