Montreal's long scoring drought ended with a five-goal outburst Thursday night, and that was just enough for the Canadiens to end a four-game losing streak.

Alex Galchenyuk scored 2:13 into overtime to give the Canadiens a 5-4 victory against the Arizona Coyotes. Max Pacioretty had two goals and two assists, one on the winning play.

"You know what? Pac was a true leader tonight," Montreal coach Michael Therrien said. "He was a true captain. He took charge. He played a hell of a game and deserves a lot of credit for that win."

Christian Dvorak scored twice for Arizona, his second tying it at 4 with 4:52 to play in regulation when he hit a wobbling puck into goalie Carey Price, who kicked it into the net.

Andrei Markov had a goal and an assist for Montreal. Max Domi, in his third game back since missing two months with a broken bone in his hand, had a goal and an assist for Arizona.

The Canadiens were shut out in their two previous games, the most recent an embarrassing 4-0 loss at Colorado.

"It was a big one for us," Galchenyuk said. "It was an up-and-down game but, like we talked here in the locker room, we needed to get that win no matter what. It wasn't a perfect game but we got the win and that's the most important thing."

The Coyotes took a 3-2 lead with a three-goal blitz over a 2:21 span late in the second period, but coach Dave Tippett said his team really had no business making the game as close as it was.

"We didn't have enough guys play well enough to win the game," he said. "When you don't deserve to win the game, you don't win a game very often."

Tippett said Domi "was good."

"That's the first game since he's come back that he really looked like he had his skating legs," Tippett said. "We needed a few more players with skating legs tonight."

Mike Smith made 35 saves for Arizona. Price had 20 for the Canadiens, who outshot the Coyotes 40-24.

Pacioretty's 27th goal of a season, 2:52 into the third period, tied it 3-all. Montreal regained the lead at 4-3 when Alexander Radulov scored with 10:04 remaining in regulation.

The first Arizona goal came on a power play, when Dvorak took a pass from Domi and scored on a left wrister into the upper right hand corner of the net with 6:14 to play in the second period.

The next two Arizona goals came 23 seconds apart.

With both teams down a player, Domi got a goal on a reversal of a call on the ice. Arizona's Peter Holland lost control of the puck at the net on a breakaway and Domi tried to jam the rebound past Price. At first, the ruling was no goal. But after a video review, Domi was awarded the score.

And 23 seconds later, the Coyotes caught Price looking the wrong way for a short-handed goal. Alex Goligoski knocked the puck into the open net to put Arizona ahead 3-2.

"It's tough going into the third period with a lead in this league," Domi said, "so when you do you've got to take advantage of that and find a way to win the last 20 minutes, and we came up a little short."