The Arizona Diamondbacks will sign Oliver Perez to a two-year, $4 million deal.

It was reported earlier Friday that the two sides had agreed to a deal.

Perez, 32, has revitalized his career over the past two seasons as a reliever with the Seattle Mariners.