Ryan Miller must have wondered if his new team, the Blues, gave their goaltenders any support.

Miller’s debut with the club Sunday in Phoenix came in the final game of the team’s three-game trip, after the Blues were shut out behind Jaroslav Halak in each of the first two.

“He’s sitting wondering what’s going on, we can’t score for him either,” Blues coach Ken Hitchcock said.

But the drought finally ended in the desert.

A four-goal third period, including two by Patrik Berglund, was a much-needed breakthrough after the Blues went eight consecutive periods without a goal, setting a franchise record for scoreless minutes.

Phoenix held a two-goal lead entering the third period. But Berglund put the Blues on the board, followed by a goal from Magnus Paajarvi, a go-ahead power-play goal by Kevin Shattenkirk and the sealer by Berglund for a 4-2 victory.

It was their 40th victory of the season, the 12th time in the franchise’s history it has reached that milestone.

A crowd of 13,955 at Jobing.com Arena that figured Phoenix was in for its second win of the season over the Blues instead watched the visitors salvage one game on the three-game trip.

The Blues nearly demonstrated that it doesn’t matter who’s in net if you don’t score. They might as well have suited up Jeff Tyni, the Anaheim locker room attendant who served as the emergency backup Friday.

The NHL’s second-leading offense, with 3.2 goals a game heading into Sunday’s matchup with the Coyotes, was nearly blanked for the third consecutive game, which would have been a club record.

Phoenix held a 2-0 lead after two periods, and since the start of the 2009-10 season the Coyotes are 130-6-8 when ahead after 40 minutes.

But Miller said he wasn’t worried.