I’m trying to use the OMS cmdlets in the Azure module, but whenever I run any of them it errors and says I need to run Login-AzureRmAccount, even though I’ve already done it and it logged in successfully.  I’m tearing my hair out (what’s left of it anyway!). Am I being an idiot!?

Scombledore12 selected answer