WASHINGTON — Energy Secretary Rick Perry, who has emerged as a central figure in the Trump administration's quickly expanding Ukraine affair, told President Donald Trump on Thursday that he will be stepping down soon, according to a Republican donor who told NBC News he spoke to a senior Perry aide.

"Secretary Perry notified President Trump in writing today that he plans to resign soon," Canary CEO Dan Eberhart, an oil industry executive, wrote in a text message to NBC.

A White House official did not dispute reports that Perry would be relinquishing his post soon.

The departure of Perry, one of the last remaining members of Trump's original Cabinet, comes as his name emerged in the Ukraine affair that has resulted in a Democrat-led House impeachment inquiry into Trump.

The inquiry has centered on a July 25 phone call between Trump and the president of Ukraine during which Trump asked his Ukrainian counterpart to investigate the family of former vice president Joe Biden, Trump's possible 2020 opponent.

The White House has made public a detailed description of the July call, while the House Intelligence Committee made public a lightly redacted version of the intelligence community whistleblower complaint that brought to light the allegations against Trump. The complaint alleged that Trump, in the July phone call, used the power of his office "to solicit interference from a foreign country" in the 2020 election.

Earlier this week, a State Department official who had been deposed by House Democrats investigating the matter, said that Perry was a member of a trio — who called themselves "the three amigos" — appointed by acting White House Chief of Staff Mick Mulvaney to spearhead Trump's efforts in Ukraine.

That official, George Kent, a deputy assistant secretary of state, told lawmakers in a closed-door deposition on Tuesday that Perry, EU Ambassador Gordon Sondland and now-former special envoy Kurt Volker were tasked by Mulvaney to oversee Ukraine policy for the U.S. and that other State Department officials were sidelined, while Trump's personal lawyer Rudy Giuliani worked to pressure the Ukrainian government to investigate Hunter Biden, the son of Joe Biden.

Perry has been subpoenaed in the impeachment inquiry.

Late Wednesday, Perry said he'd called Giuliani this spring at Trump's direction to facilitate a Trump-Zelenskiy meeting. In comments first reported by The Wall Street Journal, Perry said that Giuliani had brought up allegations of Ukrainian interference in the 2016 U.S. election — which are unfounded — and told him to "be careful" about Zelenskiy.

Giuliani confirmed the call with Perry, telling NBC News: "Everything I said there I probably said on television 50 times."

NBC News reported earlier this month that Trump told House Republicans he was urged by Perry to make the midsummer phone call to Zelenskiy.

Speculation over Perry's resignation had run rampant in recent weeks. Several news outlets reported earlier this month that Perry was expected to announce his resignation by the end of the year. But a Department of Energy spokesperson told NBC News, following those reports, that "while the beltway media has breathlessly reported on rumors of Secretary Perry’s departure for months, he is still the Secretary of Energy and a proud member of President Trump’s cabinet."

Deputy Energy Secretary Dan Brouillette is widely seen as the likely immediate successor to Perry — both because he is the next-ranking official in the department and because it would be difficult for Trump to win confirmation for another pick amid the Ukraine investigation. Brouillette has broad experience in Washington as a former top lobbyist at Ford Motor Company and as the former top aide on the House Energy and Commerce Committee.