Conversation so far:
what did Edward Canby do in the military?
During his early career, Canby served in the Second Seminole War in Florida and saw combat during the Mexican-American War.
What part of the military was he in?
where he received three brevet promotions, including to major for Contreras and Churubusco.
Was he in the Army?
CANNOTANSWER.
Anything else about his military career you can share?
Canby served in Wyoming and Utah (then both part of the Utah Territory) during the Utah War (1857-1858).
Did he receive any medals in his career?
CANNOTANSWER.
Where were some of his assignments?
Against his wishes, he was assigned to what was supposed to be the civilian post of custodian of the California Archives.
Did anything happen while he was there?
Evidently, Canby had some knowledge of the Spanish language, which was extremely useful as the government was trying to unravel land titles.

Question: where did he serve most of his time?
Self-contained rewrite: where did Edward Canby serve most of his time?