Update AA module management

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

Leave a Comment

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