Here's why this works:
* Harangue means to deliver a long, aggressive, and often angry speech.
* The context of a general addressing his troops implies a forceful and passionate speech.
You could also use it in a more informal context, like:
"My mother harangued me about cleaning my room for an hour, but I just tuned her out."