Guardiola agreed to a three-year deal with Bayern last month and will take over from Jupp Heynckes at the end of the season.
He stepped down as Barca coach at the end of last term after leading the La Liga club, where he began his career as a player, to 14 trophies in four years, including two Champions League crowns and three Spanish league titles in a row.
Bayern CEO Karl-Heinz Rummenigge and Barca President Sandro Rosell sealed the deal for the game, marking Bayern boss Uli Hoeness' 60th birthday and with all proceeds going to charity, in a meeting in Doha on Wednesday.
Thank you for reading 5 articles this month* Join now for unlimited access
Enjoy your first month for just £1 / $1 / €1
*Read 5 free articles per month without a subscription
Join now for unlimited access
Try your first month for just £1 / $1 / €1
Get the best features, fun and footballing frolics straight to your inbox every week.
Thank you for signing up to Four Four Two. You will receive a verification email shortly.
There was a problem. Please refresh the page and try again.