The lowest prices for flights with layovers are offered by Pobeda with a layover in Moscow. Tickets start at 649₼.
Aviasales.az suggests buying tickets from Baku Stavropol in advance in order to choose the conditions for your flight that best suit your preferences and budget.