The foreign ministries of Azerbaijan and Armenia say the countries agreed on Saturday to observe a new ceasefire from midnight.
The ministries made the announcement after their top diplomats talked with Russian counterpart Sergey Lavrov over the phone on Saturday.
The ministries said the truce is for humanitarian purposes, such as swapping prisoners.
The move comes as fighting over the disputed region of Nagorno-Karabakh continued even after a Russian-mediated ceasefire took effect on October 10. Azerbaijan and Armenia accuse each other of violating the initial truce.
Azerbaijan said on Saturday that more than 10 people were killed when its second largest city of Ganja was attacked.
Armenian officials announced on the same day that Azerbaijani forces attacked Nagorno-Karabakh's major city of Stepanakert and other locations. The officials say buildings were destroyed and people were wounded.
Also on Saturday, Azerbaijan's President Ilham Aliyev accused Armenia of a war crime and pledged retaliation. Turkey, which has been supporting Azerbaijan, has maintained its hardline posture.
Azerbaijan and Armenia have been locked in a decades-long dispute over Nagorno-Karabakh. The autonomous region lies within Azerbaijan, but is mainly populated by ethnic Armenians. The latest round of hostilities erupted on September 27.