Actually, Russia traditionally is allied with Azerbaijan's enemy Armenia, but that is rapidly changing.
Russia was close to Kazakhstan, up to the invasion of Ukraine, but now Kazakhstan is pulling away. There's an interesting dynamic in Central Asia, with China, Turkey and the US vying to fill the vacuum left by Russia.
Some in Kazakhstan think that Putin is interested in northern Kazakhstan, which has a large Russian speaking population and oil.