The best time to visit Azerbaijan is April to June and September to October, which will let you avoid the 40°C summers and sub zero winters - particularly in the mountains. You can also participate in the Novruz Bayrami celebrations each March, which mark the Persian New Year.