A stubborn Bronx judge is refusing to accept a new assignment, but his punishment definitely doesn’t suit the crime — he’ll be able to sit at home for months or longer drawing his fat, taxpayer-funded salary, The Post has learned.

State Supreme Court Justice Armando Montano lost his staff, chambers and parking spot last week after refusing to show up for his new gig in the court’s Integrated Domestic Violence unit — in what sources say is an unprecedented display of defiance.

“He basically threw a temper tantrum. His supervisors said, ‘It’s not up to you to decide where you’re assigned.’ He said, ‘No, I’m not doing it,’ ” one source said.

“You have an elected Bronx state judge making $208,000 a year and refusing to come to work.”

Armando, 69, had been handling felony criminal cases, plea deals and pre-trial hearings since arriving at the court earlier this year. But the cocky justice is now refusing to move to the IDV — which is for criminal cases related to family matters like divorce, domestic violence and custody battles — because he considers it beneath him.

“I can not comprehend why I am being compelled to handle essentially civil/family court matters when I have a proven record of handling complicated felony matters,” Armando fumed in a letter to Bronx Administrative Justice Robert Torres.

“Said assignment constitutes a disguised punishment,’’ the judge claimed. “It is very arrogant of you, as your position is tantalum to essentially telling me ‘You’re going to the IDV Part because I say so.’ ”

Montano, who has only been a judge for five years, was reassigned because he worked in family and matrimonial litigation as a lawyer, a source said.

A retired judge called Montano’s refusal “wrong” and “highly, highly unusual.” He said the IDV assignment should not be considered a slight since it is a “very difficult [job] because you’re dealing with disturbing cases.”

A courts spokesman added that the move was in “no way a demotion.

“As part of routine judicial reassignments, Judge Montano was asked to sit in the county’s IDV part, which is a very important criminal part that deals with cases that are both complex and emotional, as one judge handles all aspects of the criminal family and matrimonial issues in an ongoing case,” said the Office of Court Administration rep, Lucian Chalfen.

“He refused the assignment, and after multiple conversations with his superiors, the chief administrative judge reassigned his cases, staff and chambers,” Chalfen said.

The only way to fire Montano is to now refer him to the state Commission on Judicial Conduct, which has to conduct an investigation — and that process can take months.

OCA declined to comment on whether it would do this.

Even if the commission recommends firing Montano, he can appeal, dragging the process out — and collecting his hefty paycheck — even longer.

But Montano is about to turn 70 and needs a special certification, which he has already applied for, to extend his judgeship by another two years come December. And that certification has to be approved by the very judges who assigned him the role he is refusing.

“After the behavior exhibited regarding this reassignment, if I were him, I’d buy a lottery ticket, as the chance of him winning at Powerball is exponentially better than him remaining a judge,” a court source said.

Montano’s lawyer — former acting Bronx District Attorney Paul Gentile — is threatening to sue if his client isn’t given another 30 days to negotiate a resolution.

“Justice Montano is a proud son of The Bronx and the first person of his immigrant Puerto Rican family to attend college,” Gentile wrote Thursday in a letter to the state court system’s Chief Administrative Judge Lawrence Marks.

“Justice Montano deserves nothing less than the continuing opportunity to provide his exceptional skills at the highest level of judicial activity,’’ Gentile added.

Montano is the son of former state Assemblyman Armando Montano Sr. and used to represent Assembly Speaker Carl Heastie as a lawyer, according to a 2015 New York Times report.

This is an embarrassing way for Montano to end his career, said the retired judge.

“He’ll always be known as the judge who refused an assignment and was removed from his chambers and lost his parking spot,” he said. “You don’t want that in your obituary.”

Additional reporting by Lorena Mongelli