 His elder half-brother Guidobald was Archbishop of Salzburg from 1654 to 1668.Johann Ernst von Thun was ordained a priest in 1677.He was elected Bishop of Seckau in Styria on 29 December 1679 and consecrated by the Salzburg archbishop Max Gandolf von Kuenburg the next year.