Nations League holders France lost 2-0 to Denmark in their final Group 1 game but salvaged their place in the top tier at the end of a dismal campaign on Sunday.
Didier Deschamps's side, who will face Denmark in Group D at the World Cup in November, finished third in the Nations League standings with five points from six games after Kasper Dolberg and Andreas Skov Olsen scored first-half goals for the hosts.
Austria were relegated to League B after a 3-1 home defeat in Croatia left them bottom of the group on four points.
Croatia qualified for the final four with 13 points, one ahead of Denmark, who burst into life against France after being dominated in the first 20 minutes.
World champions France, who had several first-choice players out injured including Paul Pogba, Karim Benzema and Hugo Lloris, were a far cry from their best and Deschamps will be crossing fingers that all have recovered for the tournament in Qatar.
"We had a lot of chances, but we were not aggressive enough and made several technical mistakes," Deschamps said. "We had a young team and they don't have the experience of a high level. Tonight was a reality check.
"I'm not worried about the World Cup because we'll get most of our injured players back in time. We don't however think we're stronger than the others and we know it's going to be a big fight."
Kylian Mbappe had a good shot parried away by Kasper Schmeichel and Aurelien Tchouameni and Eduardo Camavinga bossed the midfield as France were on top in the opening stages of a lively game, but they gradually faded away.
Thomas Delaney had Denmark's first chance in the 23rd minute when his header was blocked by Alphonse Areola.
The hosts opened the scoring on 34 minutes when Dolberg latched on to a perfect cross from Christian Eriksen.
Five minutes later, Skov Olsen's volley from just outside the area gave Denmark a 2-0 lead.
Les Bleus struggled to handle their opponents' pace but tried to hit back after the break, with Schmeichel denying Mbappe at the end of a swift counter-attack and blocking the forward's powerful shot from close range.
France lacked defensive stability with Raphael Varane on the bench as Deschamps looked to preserve other key players amid a packed schedule.
Antoine Griezmann and Olivier Giroud were also substituted in the second half, as with Austria trailing in Croatia, Les Bleus had nothing to gain or lose in the finale.