Josh Groban has signed on to star opposite Tony Danza in the upcoming Netflix series “The Good Cop,” Variety has learned.

Groban will play the role of Tony Jr., an earnest, obsessively honest NYPD detective who makes a point of always following the rules. Tony Jr. is son to Tony Sr. (Danza), a disgraced, former NYPD officer who never followed the rules. They become unofficial partners as Tony Sr. offers his overly-cautious son blunt, street-wise advice on everything from handling suspects to handling women.

Andy Breckman, the creator of “Monk,” serves as showrunner and executive producer. Randy Zisk and Howard Klein also serve as executive producers. Danza serves as a producer. Netflix has ordered a 10-episode first season of the one-hour dramedy.

Groban is an internationally renowned singer and songwriter, having sold over 30 million albums during his career. As an actor, he has appeared in films like “Crazy, Stupid, Love, “The Hollars,” and “Muppets Most Wanted,” as well as on TV shows like “The Office,” “It’s Always Sunny in Philadelphia,” and “Parks and Recreation.” “The Good Cop” will be his first regular role on a television series.

Groban is also an active arts education philanthropist and advocate. He is a member of Americans for the Arts Artists Committee and Groban’s Find Your Light Foundation helps enrich the lives of young people through arts, education, and cultural awareness.

He is repped by WME.