The trick did not work a second time on 25 January, and Wyndham's landing party in Fife encountered an ambush of 600 men; 10 soldiers were killed and 20 sailors injured. Dudley built a second fort to command Dundee in March 1548 with the engineer Master John Rossetti and Sir Thomas Palmer. He was relieved at Broughty by Thomas Wyndham's nephew, Sir John Luttrell. On 3 April 1548, Dudley and Luttrell were instructed by the Privy Council to try to agree a yearly pension for Lord Gray at a figure between 600 and 1000 crowns. Dudley's next military appointment after his service in Scotland was under Lord Russell against the Western Rebellion in August 1549. In early 1551 Dudley became captain of the English garrison at Guînes. However, he incurred large debts "by his service", and became involved in a dispute with Lord Willoughby, the Lord Deputy of Calais. In January 1552 they were recalled to England and summoned before the Privy Council. Finally, to resolve the feud, both men were relieved of their posts in October. During 1552 Dudley also surveyed the coastal defenses of Portsmouth and the Isle of Wight to advise on their improvement. Under Edward VI, Dudley also obtained court appointments and responsibilities; a member of the Privy Chamber, on 24 March 1547 he was given custody of a purse of £1435-9s-6d. Dudley's brother John ousted the Protector in October 1549, and Andrew became one of the newly created Chief Gentlemen of the Privy Chamber. These four "principal gentlemen" had "the singular care" of the King's person and were each rewarded with £100 p.a. A year later Dudley also became keeper of the Palace of Westminster, where he made an inventory of wardrobe and household goods. Effectively in charge of the Privy Purse, he was responsible for receiving and paying out royal cash and looking after "all the jewels ... and other things in the palace". In 1552 Dudley was made a Knight of the Garter; at the end of the year he was sent on a diplomatic mission to discuss Edward VI's hopes to mediate for peace between the Empire and France. He first travelled to Brussels, where he was received by Mary of Hungary on 8 January 1553. Impatient to see the Emperor himself, he tried to intercept him on his way to Flanders. Sir Richard Morrison, the English resident ambassador with Charles V, knew nothing of this until he met Dudley at Treves.