military adviser

noun

1.
a military officer who serves as an adviser to the troops of an allied nation