At the Second All Russian Congress of Soviets on October 25, Krylenko was made a People's Commissar (minister) and member of the triumvirate (with Pavel Dybenko and Nikolai Podvoisky) responsible for military affairs. In early November (Old Style) 1917, immediately after the Bolshevik seizure of power, Krylenko helped Leon Trotsky suppress an attempt by Provisional Government loyalists, led by Alexander Kerensky and General Peter Krasnov, to retake Petrograd.