The Montreal Canadiens have agreed to a two-year, $5.2-million contract with forward Joel Armia, the team announced Thursday.

The deal means Armia and the Canadiens avoid arbitration, which was scheduled for July 20.