Update AA module management

Update AA module management

June 27, 2020 0 By Morten Lerudjordet

Just a quick post, I updated the Import-PSGalleryModulesToAA.ps1 runbook to also handle running on a new Azure Automation account.

The runbook will now bring AzureRM.Profile, AzureRM.Automation, AzureRM.Resources up to the latest version before importing other modules. You will need to also set the parameters AutomationAccountName and AutomationResourceGroupName as the logic that automatically discovers the AA account does not work on the early versions of AzureRM.

If the runbook is started without setting the parameters it will terminate with an warning telling you to set the parameters.

After the AzureRM modules are on the latest version you can run the import runbook anew to install the wanted modules.

Happy tinkering