Guerre russo-polonaise
In 1739, Rosenberg was born into a family belonging to the Baltic nobility. He joined the Imperial Russian army and fought against the Kingdom of Prussia in the Seven Years' War and Ottoman Turkey in the Russo-Turkish War of 1787–92. He also led troops against the Poles but it is not clear if it was during the Polish–Russian War of 1792 or the Kościuszko Uprising in 1794, or both.