First up, the 36-year-old Swiss will play Ajaz Bedene of Slovenia.
Djokovic is in the same quarter as the Zverev brothers - fourth-seeded Alexander could meet older brother and No. 32-seeded Mischa in the third round - 2014 champion Stan Wawrinka, and No. 5 Dominic Thiem.
"So (it was) a huge surprise, especially after the six months I had off, and what a comeback it was and it was definitely the highlight of the year". He was playing extremely well last week in Brisbane, taking on Grigor Dimitrov stroke for stroke in the quarter-finals in Brisbane, and then he lost his footing, rolled his ankle and fell over. "I don't like usually going to draws because they freak me out - I don't want to know who I play other than just seeing the sheet at the end and knowing who my first-round opponent is".
Caroline Wozniacki, the second seed after her resurgence in 2017 when she reached eight finals, opens against Mihaela Buzarnescu of Romania in the bottom half of the draw.
A string of local hopes were also dealt hard draws; 17-year-old Destanee Aiava will face world number one Simona Halep while fellow teenager Alex De Minaur, who has made the semi-finals at both the Brisbane and Sydney Internationals, will play Tomas Berdych.
England to face Costa Rica in Leeds in June
England have clashed twice at full worldwide level with Nigeria - a 1-0 win against the Super Eagles in 1995 at Wembley and a goalless draw at the 2002 World Cup.
Federer beat Rafael Nadal in the final here past year on his return from six months on the sidelines and is seeded No. 2 as he bids for a 20th Grand Slam singles title.
Britain's Andy Murray and Japan's Kei Nishikori have already withdrawn from the championships and women's world number three Garbine Muguruza has twice pulled out of tournaments over the last two weeks due to leg cramps and a thigh problem.
British number one Johanna Konta, seeded ninth for the first grand slam of the year, will take on Madison Brengle of the US while last year's runner up Venus Williams has been drawn against Belinda Bencic of Switzerland.
In a women's field notably missing 23-time Grand Slam champion Serena Williams, there appear to be many chances of a new Australian Open champion this year.
While pleased at his progress, Djokovic, who has dropped to 14 in the world, admitted he still had work to do ahead of the opening Grand Slam of the year.
"Ranking points, player withdrawals and how we deal with that is something we've got to and are looking at", he told Fairfax Media in Auckland. "I had a great four to six weeks of tennis training, and many months before that to get myself ready for the training. I certainly will hope I put myself in that position", Sharapova said.