 His grandparents were Count Franz Xaver Ignaz Joseph von Armansperg , imperial Chamberlain and Maria Anna Elisabeth von Sainte-Marie Eglisine.In the Napoleonic Wars, in 1813–1814, he was Commissioner of Bavaria in the allied army, and belonged to the board which governed the conquered regions on the Rhine River.He participated in the Congress of Vienna in 1815, and was one of the plenipotentiaries with the allied army during the occupation of France, and administered a large district of that country.