Qatar has some reasonable fares in J out of MUC or FRA.. Plenty of dates for months ahead at around £1k if you can get to either MUC or FRA.
First leg to Doha would be on the A350 and usually the Baku sector is an A320L so decent onboard product also.