PORTLAND, Ore. — Landon Donovan celebrated his record 14th all-star selection with a goal in a 23-minute cameo Wednesday as the MLS all-stars defeated Bayern Munich 2-1 at the AT&T MLS All-Star Game.

Donovan’s goal in the 70th minute came from a beautiful pass from Portland’s Diego Valeri in the penalty box. The Los Angeles Galaxy star fought off two defenders and beat German No. 1 ‘keeper Manuel Neuer from close-range to make it 2-1. Donovan promptly gave way to Dom Dwyer as coach Caleb Porter emptied his bench.

Substitute goalie Bill Hamid preserved the lead with a close-range save off Juan Bernat late in the game.

Polish international Robert Lewandowski opened the scoring for Bayern before a vocal crowd of 21,733 at Providence Park on a glorious night.

MLS scoring leader Bradley Wright-Phillips of the New York Red Bulls also scored for the all-stars.

Bayern led 1-0 at the half thanks to some heroics from goalie Nick Rimando. The all-stars’ defence collapsed in on itself several times in the first 45 minutes, allowing for good scoring chances.

Porter switched 10 players at the break but waited a minute or so into the half to bring Donovan on. He replaced Red Bulls star Thierry Henry, who had some stellar moments in the first 45 minutes.

For all the hype and star power, Wednesday’s game was essentially a matchup of an elite club team in pre-season mode and a jury-rigged MLS side. The all-stars had just two workouts ahead of the game and their roster tinkering continued through Tuesday.

Bayern was bolstered by the return of eight World Cup stars who made the 12-hour journey to the West Coast this week — essentially to satisfy sponsors and Major League Soccer. Manager Pep Guardiola had said that those who played would only do so in a cameo role.

But their presence was felt. German midfielder Bastian Schweinsteiger, whose Twitter following numbers 1.13 million, received a warm welcome as he entered the stadium and walked pitchside to the Bayern dressing room.

To put the Bayern starting 11 in perspective, only one (Austrian defender David Alaba) started for the German side in the second leg of their Champions League semifinal against Real Madrid in April. Four of the substitutes that day were in Wednesday’s starting lineup.

The Bayern bench was a Who’s Who featuring goalie Neuer, defenders Dante, Jerome Boateng, Philipp Lahm and midfielders Franck Ribery, Arjen Robben, Mario Goetze, Thomas Mueller and Schweinsteiger. Teenage American defender Julian Green also started on the bench but came on in the 37th minute.

Landon Donovan of MLS all-stars scores his team’s second goal during the MLS all-star game between the MLS all-stars and FC Bayern Munich at Providence Park on August 6, 2014 in Portland, Oregon. (Lars Baron/Getty Images)

Neuer, Germany’s No. 1 ‘keeper, and Brazil’s Dante came on some 15 minutes into the second half. Boateng soon followed, with Mueller, Lahm, Goetze and Schweinsteiger entering in the 80th minute. Robben came on in the 86th minute.

Bayern Munich now heads home for its 2014 team presentation Saturday at Allianz Arena. The team then plays Borussia Dortmund next Wednesday in the Supercup.

Toronto FC midfielder Michael Bradley was chosen as part of the Fan XI in online and social media voting. Porter fleshed out the rest of the roster.

Bradley started and had a quiet 45 minutes, his passing radar a little off.

Canadian international midfielder Will Johnson, captain of the Portland Timbers, came on in the second half. The vocal fans in self-proclaimed Soccer City U.S.A. showed him plenty of love throughout the night, while loudly booing Clint Dempsey and the other Seattle all-stars.

Johnson picked up a yellow card late in the game.

After banners were unfurled and cannons and fireworks set off, the game kicked off before a loud crowd at Providence Park.

Dempsey and fellow Sounders striker Obafemi Martins started up front, with Henry and Graham Zusi on the flanks and Tim Cahill and Bradley in central midfield.

The all-stars opened smartly thanks to some good passing and the pace of Martins but Bayern went ahead in the eighth minute via Lewandowski, who had almost opened the scoring a minute earlier. Rimando stopped that shot but could not handle a swerving right-footed shot from the edge of the penalty box that went high into the goal.

Seconds before, Bayern midfielder Sebastian Rode was felled in the centre circle. There was no call, which seemed to fire up the visitors. Still the all-stars responded after the goal, coming close on several occasions with 21-year-old Seattle fullback DeAndre Yedlin marauding down the right flank.

Bastian Schweinsteiger lies on the pitch after a tackle of Matt Besler of MLS all-stars during the MLS all-star game between the MLS all-stars and Bayern Munich at Providence Park on August 6, 2014 in Portland, Oregon. (Lars Baron/Bongarts/Getty Images)

Lewandowski put on a show in the 33rd minute, dancing over the ball in the all-stars’ penalty box, freezing Yedlin before passing to a teammate.

Rimando prevented a goal in the 28th minute, acrobatically clawing away a close-range shot from Swiss international Xherdan Shaqiri.

The 36-year-old Henry showed his class in the 41st minute, controlling the ball with his foot and then thigh before sending a volley from well outside the penalty box just over the crossbar.

Wright-Phillips tied it up in the 51st minute with a left-footed rocket that beat goalie Tom Starke, who ranks no higher than No. 3 on the Bayern goalie depth chart, from just outside the penalty box.

Seattle midfielder Osvaldo Alonso was shown a yellow card for a 64th-minute foul on Shaqiri that had Guardiola complaining from the sideline.

The all-stars are now 6-4 against touring teams since 2005, with losses to Roma, Manchester United (twice) and West Ham.

Bayern, the first German team to take on the all-stars, won the Bundesliga in 2013 for the 24th time, while winning the German Cup and reaching the Champions League semifinals.

The German side opened its North American tour last Friday with a 1-0 win over Chivas Guadalajara at the home of the New York Red Bulls.

All-star defenders Chad Marshall and Omar Gonzalez of the Los Angeles Galaxy, midfielder Kyle Beckerman of Real Salt Lake, and forward Robbie Keane of Los Angeles and Jermain Defoe of Toronto FC pulled out of the MLS squad through injury or scheduling concerns.

Still there was no room for the likes of Chilean attacking midfielder Pedro Morales, who pulls the strings for the Vancouver Whitecaps.