Issue: Azure Automation & Run Login-AzureRmAccount to login

Issue:

Ran into an issue when initially setting up a new Automation account using an ARM template. We noticed that the module versions in the automation account were out of date, at the time we decided to ignore it thinking it was a anomaly.

Fast forward a couple days and when trying to use an Azure Run as connection to run a DSC complication job, it was complaining that we needed to use Login-AzureRMAccount (even though we were using Add-AzureRMAccount).

 

Fix:

To resolve this, I updated the modules using the update Azure modules button in Automation Accounts\<Automation Account>\Modules\Update Azure Modules.

 

Tagged with:

Leave a Reply

Your email address will not be published. Required fields are marked *