Learning about the exploits of the men in the outfit, the chief of staff of the regiment, General Pavel Melik-Shahnazaryan, advised Bagramyan to return to Tiflis to enroll in the Praporshchik Military Academy. But in order to attend the school, Bagramyan needed to satisfy the academy's requirement of having completed school at a "gymnasium". This did not deter him and, after preparing for the courses in Armavir, he passed his exams and began attending the academy on February 13, 1917. He graduated in June 1917 and was assigned to the 3rd Armenian Infantry Regiment, stationed near Lake Urmia. But with the overthrow of the Russian Provisional Government in the midst of the October Revolution of 1917, his unit was demobilized.