J.D. Irving has secured an agreement to sell power from the large wind farm it's building in western New Brunswick to N.B. Power.