IIRC, there are very clear guidelines for what constitutes an illegal order.
Seems that the courts martial would evaluate claims of an illegal order within that framework.
OK, what is illegal about being ordered to deploy to Afghanistan by his brigade commander?