Johann Nepomuk Joseph Florian, Graf von Triva (20 September 1755 – 8 April 1827) was a Bavarian General der Artillerie.
Triva, born in Munich, joined the cadets corps of the Bavarian army on 1 September 1766 after his parents death.
On 26 September 1772 he was transferred to the genie troops in the rank of a Fähnrich, became Leutnant in 1777, Hauptmann in 1780, Major in 1785, Oberstleutnant in 1791 and Oberst in 1796.
In 1797 he married as his second wife a maid of honour of the deceased Countess Elizabeth Augusta, a Fräulein van der Stock.
In the rank of Lieutenant General, he additionally was head of the privy war bureau (Geheimes Kriegsbüro) from 1804 to 1808.