It might be a Pyrrhic victory, but the plain fact is Azerbaijan could crush tiny Armenia if it wanted to, and take back the breakaway republic of Nagorno-Karabakh. Armenia has had to give up some of the land it seized (illegally under international law), but it's 'Breakaway republic' remains essentially intact, and connected to Armenia proper by a land corridor. Putin did the right thing.