The two-time defending NBA champion Miami Heat reached agreement with troubled free agent Michael Beasley on a training camp contract league sources told Yahoo Sports.

Beasley has to make the roster to earn his one-year minimum contract deal of $1 million.

Several of the Heat's key veteran players were supportive of the signing and Beasley had a strong interest in returning to the franchise responsible for drafting him with the second overall pick in the 2008 NBA draft.

The Phoenix Suns reached a buyout agreement with Beasley on the remaining two years of his contract last week. Beasley 24 was charged for marijuana possession in an August arrest adding to his considerable history of legal issues surrounding pot.

Beasley left Phoenix with approximately $7 million of the $9 million owed him on an original three-year $18 million contract.

Beasley a 6-foot-10 forward played two seasons for Miami before president Pat Riley traded him to the Minnesota Timberwolves in 2010 for draft picks and the salary cap space needed to make the Heat's historic haul of LeBron James and Chris Bosh.

Beasley had two productive seasons with the Heat averaging 14.3 points in less than 30 minutes a game. Beasley averaged a career-best 19.2 points a game for the Wolves in 2010-'11 and struggled in the first season of a three-year deal with the Suns shooting 40 percent and averaging 10.1 points a game.