TerraForm Power Inc (NASDAQ:TERP) has inked a deal to buy a roughly 320-MW portfolio of distributed generation (DG) assets in the US from AltaGas Ltd (TSE:ALA) for a total purchase price of USD 720 million (EUR 642m).