Portugal will face Spain, Morocco and Iran in Group B, and will play warm-up matches against Tunisia, Belgium and Algeria.
Despite going a goal down to Getafe, Cristiano Ronaldo (2), Isco and Pepe gave Real a 4-1 victory.
The August 14 match in Faro aims to help get the team ready for a decisive phase in its World Cup qualifying campaign. Portugal leads Group F with 14 points, two more than second-place Russia, but the Russians have two games in hand.
Mourinho rested a host of first-team players from the start at the Cornella El-Prat with Friday's Copa del Rey final against Atletico Madrid in mind, but Real were still dealt a huge blow ahead of that clash when Raphael Varane limped off with a knee injury early on.
Real Madrid manager Jose Mourinho has hit back at his own player Pepe after the defender said Mourinho ought to have more respect for club captain Iker Casillas.
Just as Lionel Messi had failed to shine for a subdued Barcelona at Bayern on his return from a hamstring injury, Real star Cristiano Ronaldo was fairly anonymous apart from scoring the visitors only goal.
Interestingly the decision comes when Marcelo has been suffering a low point in his career. He joined the club as an 18-year-old midway through the 2006-2007 season for six million euros.
Real Madrid defender Pepe has said they are perfectly prepared for the Champions League clash with Manchester United on Tuesday after they secured a second win over Barcelona in less than five days on Saturday.
Madrid hosts United on Wednesday in the first leg of their round-of-16 series.
Raul Meireles will have to wait until next week to find out whether his appeal has been upheld, with the commission waiting to review "images of the incident from every angle". "The referee's accusations are outrageous and defamatory. I have an eight-year-old child, can you imagine if kids start saying your father spat at a referee?," said Meireles.