Retiring Del. Bill Janis has landed on his feet.

Gov. Robert F. McDonnell has given his fellow Republican a post in his administration, announcing Friday that Janis will become deputy commissioner of the Virginia Department of Veterans Services.

Janis, a former navy officer who attended the Virginia Military Institute, suffered a surprising defeat for Henrico Commonwealth’s Attorney in November.

He was considered a shoo-in after joining the race to take on the embattled Republican candidate, Matthew Geary, who party leaders abandoned after he admitted to an extramarital affair.

Shannon Taylor, a Democrat who came into the race late and was considered a long-shot candidate, defeated Janis, a Republican turned independent, who had lined up support from Virginia’s top Republicans, including House Majority Leader Eric Cantor, Lt. Gov. Bill Bolling and Attorney General Ken Cuccinelli.

Janis, who had been serving as the Republican whip, will start next Wednesday after his term in the House ends.