He was a member of the staff of Emperor Franz Joseph I of Austria and took part in the Austro-Hungarian campaign in Bosnia and Herzegovina in 1878. It is said that the Emperor liked Miguel immensely and granted him the privilege of extraterritoriality that allowed him to remain Portuguese, despite the rejection of Portugal. His second son, Prince Francisco José of Braganza, was named after the Austrian Emperor, who was his godfather.