On October 27, he became a member of the Revolutionary Military Committee and was elected the chief of defense of Petrograd. He was then appointed commander-in-chief of the troops of the Petrograd Military District, and then appointed commander of the troops operating against the forces of Kerensky-Krasnov. But on November 8 announced his resignation from these positions, in connection with the withdrawal of the Left Socialist Revolutionaries from government posts.