ALBANY — Former Manhattan U.S. Attorney Preet Bharara is not ruling out running for New York attorney general this year, but said he won't seek to be selected to the post by the state Legislature.

"It does have the look and feel of a backroom deal," Bharara said of the Legislature's selection process, which will be driven by the Democrat-controlled state Assembly. "And that's not something I want to be a part of right now."

Bharara made the comments in an episode of his podcast, "Stay Tuned with Preet," that was released on Thursday — three days after the stunning resignation of Eric Schneiderman following allegations in the New Yorker magazine of abusive behavior towards four women.

Bharara said he was "stunned and dismayed, disgusted" by the allegations against Schneiderman, and glad he had resigned.

Assembly Speaker Carl Heastie has arranged a process beginning next week in which candidates seeking appointment to the attorney general post will interview in public. It's unclear when a vote — in a joint session of the Assembly and state Senate — would take place.

"They should not have a dog-and-pony show in the state Legislature," Bharara said of the replacement process. "And they should do the thing that makes the most obvious sense, at least to me, and appoint as interim attorney general Barbara Underwood."

Underwood, the state's solicitor general, was sworn in Tuesday as acting attorney general.

Bharara said that she was eminently qualified and would effectively run the office while a political campaign played out this year to replace Schneiderman, who until this week had been planning to seek a third term in office.

"It's an important job; it's an important time — so we'll see," Bharara said." "I'm busy. I've got this podcast. And I love you guys, and I would miss you."

In late 2016, President-elect Donald J. Trump asked Bharara to stay on board as U.S. Attorney, but then fired him a few months after inauguration.

"It's an important job, attorney general — and it's never been more important," Bharara said, observing that the rule of law was under attack by the Trump administration and that pockets of corruption were still prevalent in New York.

"But frankly, I will tell you, I don't know that I want that job. I've said many, many times (that) politics is not my cup of tea," he said. "It's not. There are a lot of things you've got to do in politics — given the current framework, given the current campaign finance system — and I have always tried to find ways to serve, and serve most of my adult life, in a position where I didn't feel I had to compromise based on politics. And I feel that very strongly."

Bharara said many people had reached out — on social media, plus phone calls, emails and street encounters — and asked him whether he was running for attorney general. He said he was flattered.

As a federal prosecutor, Bharara gained a reputation as a fierce enemy of corrupt politicians. His office cut a swath through the Legislature, climaxing with the back-to-back 2015 arrests of Assembly Speaker Sheldon Silver and Senate Majority Leader Dean Skelos.