He became the intimate friend and counselor of Emperor Joseph II, and, inheriting his father's vast estates, lived in the greatest splendor and luxury until the War of the Bavarian Succession brought him again into active service.