After being held for more than an hour, Portugal capitalised on assuming a numerical advantage to beat Azerbaijan 2-0, with Bruno Alves and Hugo Almeida getting the goals.
Malaga's UEFA Champions League run has extended into the quarter-finals after goals from Isco and Roque Santa Cruz put the hosts past Porto 2-1 on aggregate.
Malaga's former Portugal international Duda is confident his side can overcome a 1-0 deficit at home to Porto in their UEFA Champions League last 16 second-leg tie on Wednesday.
A fine Joao Moutinho goal gave Porto a 1-0 victory over Malaga, though the Portuguese giants will rue a host of missed chances on home turf.
Benfica, Celtic, Chelsea, Cluj, Galatasaray and Juventus are fighting it out for the three remaining slots in the last 16 of the UEFA Champions League. FIFA.com looks ahead.
Porto will play off with Paris St Germain for pole position in UEFA Champions League Group A next month after underlining their progress to the knockout stages with a 3-0 win over Dinamo Zagreb.