The two sides last fought in 2020, when Azerbaijan retook parts of the region and areas around it that were lost in an earlier separatist war.