Here's how I'd rank types in terms of ability to stand being in the military.
Perfect Type for the Military
ESTP
Close To Perfect
ISTP, ENTJ, ESTJ, ESFP
50/50
ISTJ, ENTP, ISFP, ENFJ, ESFJ, INTJ
Will Have Trouble
ENFP, ISFJ, INTP, INFJ
Worst Type For Military
INFP
Extraverts, Sensors, Rationals, Artisans, Sensing-Thinkers, and Intuitive-Judgers all have some advantages in a military environment- applying to all types except the INFP.
Introverts, Intuitives, Guardians, Idealists, Sensing-Feelers, and Intuitive Perceivers will all have some disadvantages with such an environment- applying to all types except the ESTP.
However, this changes once you get higher in command. Move all the Intuitives up a tier and the Sensors down one.