His first taste of land battle in Russia was the disastrous defeat at Narva, in which Lacy commanded a unit of musketeers, holding the rank of poruchik. During the Great Northern War he was seriously wounded on two occasions, gaining the rank of colonel in 1706. The following year he led a brigade at Poltava, in which battle he greatly distinguished himself. From this point began his fame as a soldier. His next active service, still under Prince Repnin, was the siege of Riga. Lacy was reputedly the first Russian officer to enter the capital of Livland and he was appointed the first Russian chatelain of Riga Castle in the aftermath. In 1719 Apraksin's fleet landed Lacy with 5,000 infantry and 370 cavalry near Umeå in Sweden, where they proceeded to devastate a dozen iron foundries and a number of mills. Soon promoted general, he entered the Military Collegium  — as the Russian Ministry of Defense was then known - in 1723. Three years later, Lacy succeeded Repnin in command of the Russian forces quartered in Livland, and in 1729 he was appointed Governor of Riga. These positions brought him in contact with the Duchess of Courland, who before long ascended the Russian throne as Empress Anna. During her reign, Lacy's capacity for supreme command would never be doubted.. What year did Lacy succeed Repnin in command of the Russian forces quartered in Livland?