Great Britain rested Andy Murray and squeezed into the Davis Cup quarterfinals on Thursday after clinching an all-or-nothing doubles rubber to beat Kazakhstan.

Britain will face Germany in Madrid on Friday night in the last eight, which begins later on Thursday with Australia up against Canada. On Friday, Serbia will face Russia and Spain takes on Argentina.

The British team knew defeat would ensure an early exit just as France, the tournament's top seeds, had already crashed out a few hours before at the hands of Serbia and Novak Djokovic.

It made the gamble to leave Murray out of the singles all the more bold, even if the Scot appears to be struggling for fitness after his lengthy duel with Holland's Tallon Griekspoor on Wednesday.

READ | Davis Cup: Djokovic sends Serbia through as France knocked out

Instead, the three-time grand slam champion was cheering from the side as Kyle Edmund played brilliantly to see off Mikhail Kukushkin 6-3, 6-3 before Dan Evans was beaten 5-7, 6-4, 6-1 by Alexander Bublik to leave the tie in the balance.

But Jamie Murray and his partner Neal Skupski, making his Davis Cup debut, held their nerve to prevail 6-1, 6-4 over Bublik and Kukushkin, who might have felt the strain after returning to the court following their singles.