Quarterback Connor Brewer, formerly of Texas and Arizona, will play at Virginia this season, he told ESPN on Tuesday.

He has two years of eligibility remaining and can compete immediately as a graduate.

Connor Brewer redshirted at Texas in 2012 before transferring to Arizona and now Virginia. AP Photo/Eric Gay

Brewer had committed to play at Northern Arizona, but this unexpected opportunity arose when Greyson Lambert left Virginia to compete for the starting quarterback position at Georgia.

"Virginia is an excellent opportunity to continue to pursue my career and education," Brewer said.

Brewer said he knew Lambert from Elite 11 Camp. He said he is aware of Houston Texans quarterback Tom Savage, who also competed at three major college programs -- Rutgers, Arizona and Pittsburgh.

"I'm going to get there and try to learn the playbook as quickly as possible," Brewer said. "I'm going to give it my all in whatever role I am asked."

Virginia coach Mike London named Matt Johns the No. 1 quarterback entering fall camp prior to Lambert's departure.

Brewer, 6-foot-2, 206 pounds, was a member of the ESPN 150 and the Elite 11 in 2011. He passed for more than 7,000 yards and 100 touchdowns in three seasons at Chaparral (Arizona) High School, and committed to Texas after winning three state titles.

Brewer redshirted at Texas in 2012 and transferred to Arizona, where he sat out 2013 and was a backup this season.