City Hall’s bumbling tech czar previously held a similar job in Atlanta — which was crippled by a cyberattack shortly after he left for the Big Apple.

Samir Saini, who’s enmeshed in a scandal over an entirely preventable crash of the city’s in-house wireless network, was Atlanta’s chief information officer when Mayor Bill de Blasio named him head of the Department of Information Technology and Telecommunications in January 2018.

Less than two months after he started the job, Atlanta shut down all of its government computers for five days to prevent the spread of a virus that was detected on March 22, 2018.

The cost of recovering from that attack, blamed on a pair of Iranian hackers, was estimated at $17 million.

A city official told The Post on Thursday that the combination of incidents meant Saini “should be fired” from his $226,366-a-year post.

“What happened in Atlanta should have shown City Hall that he was punching above his weight. And then he went ahead and proved it,” the official said.

Emails obtained by the Atlanta Journal-Constitution and Channel 2 Action News revealed that officials had discussed earlier cybersecurity incidents during 2017, including one in which a computer was infected with a ransomware virus.

Cybersecurity expert Tony UcedaVelez, CEO of Atlanta-based VerSprite, told the news organizations that the correspondence “tells me they didn’t do enough triaging of the security threat that was found a long, long, long time ago.”

“There’s definitely some negligence,” UcedaVelez said at the time.

Following Saini’s appointment, the city also hired Saini’s former chief deputy in Atlanta, Vijay Gogineni, as DoITT’s chief operating officer in June 2018 at a salary of $210,000.

City Hall and DoITT wouldn’t comment on Saini’s and Gogineni’s tenures in Atlanta.

Saturday’s crash of the city’s “NYCWin” Wi-Fi network occurred due to a failure to upgrade its software ahead of a long-expected “rollover event” similar to the Y2K bug.

The shutdown came despite a warning issued last year by the Department of Homeland Security and media reports last month by The Post and other outlets.

DoITT pays the Northrop Grumman Corp. about $40 million a year to operate NYCWiN..

On Thursday, a DoITT spokeswoman said the system would be back up “this weekend.”

Earlier, de Blasio wouldn’t assign blame for the embarrassing snafu, saying, “sometimes there’s going to be mistakes.”

The mayor absolved himself of any responsibility for the shutdown, which cut remote access to the city’s traffic lights and shut down some traffic cameras and NYPD license-plate readers.

“I was not involved in the planning. It was not something that came up to my level,” he said.

Additional reporting by Julia Marsh