The 46-year-old was sacked by the Rossoneri in January and replaced at the helm by Clarence Seedorf, who has since made way for Pippo Inzaghi.
Allegri was then handed the reins at Juventus following the shock resignation of Antonio Conte, who had led the Old Lady to three successive Serie A titles since taking charge in the summer of 2011.
The former Cagliari coach will begin his league campaign with the Bianconeri away to Chievo when the new Italian season gets underway on the last weekend in August.
Allegri will oversee his first home game against Udinese a fortnight later before returning to the Giuseppe Meazza for Juve's clash with Milan on the weekend of September 21.
As for Inzaghi's men, who have been struggling in pre-season, they will kick off their campaign against Lazio at San Siro.
Elsewhere, Inter will begin with a tricky trip to Torino, while last season's runners-up, Roma, also have a difficult opener, against Fiorentina.
Napoli, who finished third last term, will start their second season under the leadership of Rafael Benitez against Genoa.
Looking further ahead, the first Milan derby takes place in week 12, in November, while the first Derby d'Italia between Juventus and Inter is provisionally scheduled for Turin on January 6, seven days before city rivals Roma and Lazio lock horns at the Stadio Olimpico.