This is a list detailing military service by British royalty, namely formal military service and not the honorary titles given to the members of the Royal Family.
Military service of English monarchs
A few English monarchs came to the throne from other countries and served in the armies of their home country. A few served in other armies during their exile.
References
Military service by British royalty Wikipedia(Text) CC BY-SA