SCOTTSDALE, Ariz. -- The D-backs got in their last bit of Cactus League action before heading to Australia on Sunday afternoon, walking off with a 6-5 victory against the Brewers at Salt River Fields.
A solo homer by Caleb Gindl in the seventh broke a tie and put Milwaukee ahead. Jonathan Lucroy then scored on a wild pitch in the eighth to extend the lead. But the D-backs mounted a three-run rally with no outs in the ninth, with Tony Campana singling in the winner.
Milwaukee's Yovani Gallardo and Arizona's Trevor Cahill both allowed some offense early but settled down as the teams took a 3-3 tie into the late innings. Cahill's outing was his final start before pitching the second game of the Opening Series in Australia next weekend.
The D-backs opened the scoring in the first on an RBI double by Martin Prado, who leaves for Australia having hit .475 (19-for-40) with six doubles, 10 runs scored and seven RBIs. Prado scored on a Miguel Montero single to give Arizona a 2-0 lead.
"I felt like the ball was coming out nice and easy; I felt like the first few innings I was just leaving the ball up in the zone a little bit," said Gallardo, who was making his first appearance since he was named the Opening Day starter. "These guys are going to take advantage of it."
The Brewers bounced right back against Cahill, plating two runs in the top of the second on a solo homer by Khris Davis and an RBI single by Gallardo.
In the fifth, the Brewers looked to take the lead on a fly ball to center field by Lucroy, but D-backs center fielder A.J. Pollock made a spot-on throw home to keep Gennett from scoring.
Brewers manager Ron Roenicke was ejected in the ninth inning following the play at the plate in which the D-backs tied the game at 5.
A throw to catcher Martin Maldonado beat Arizona runner Shelley Duncan, who went around Maldonado's tag attempt. Roenicke argued that if Maldonado missed the tag, it was because Duncan went out of the base line.
First-base umpire Bill Miller eventually came to the plate to break up the discussion, and soon after he tossed Roenicke.
Cahill, showing no ill effects of a sore knee, allowed three runs (two earned) on seven hits while striking out seven and walking one in five innings of work. Gallardo pitched five innings also, allowing three earned runs on seven hits while striking out two.
"I feel as good as I can feel, I guess," Cahill said. "The results haven't been there, but today as the game went on I got a decent feel for all my pitches, so I'll just pump up the adrenaline a little bit more and we'll see what happens."
Up next for Brewers: Kyle Lohse on Monday will face the White Sox at Maryvale Baseball Park in his third Cactus League start. Lohse gave up two runs in three innings in his most recent outing. He also shut out the Dodgers on March 1 in his two-inning spring debut. Meanwhile, Matt Garza will pitch in a Minor League game on the back fields. Lohse's start, scheduled to begin at 3:05 p.m. CT, can be seen on MLB.TV.
John Schlegel is a national reporter for MLB.com. You can follow him on Twitter at @JohnSchlegelMLB. This story was not subject to the approval of Major League Baseball or its clubs.