Article Two of the United States Constitution
The President commissions "all the Officers of the United States."  (This means he gives these officers the power to do their jobs.)  These include officers in both the military and foreign service (people who work for the United States government in other countries, like Ambassadors).  However, Article One of the Constitution, Section 8, gives each state the power to appoint officers in their own militias.