Search
StarWind is a hyperconverged (HCI) vendor with focus on Enterprise ROBO, SMB & Edge

[Azure] Update your Azure Automation modules

  • May 19, 2020
  • 4 min read
Cloud and Virtualization Architect. Florent is specializing in public, hybrid, and private cloud technologies. He is a Microsoft MVP in Cloud and Datacenter Management and an MCSE in Private Cloud.
Cloud and Virtualization Architect. Florent is specializing in public, hybrid, and private cloud technologies. He is a Microsoft MVP in Cloud and Datacenter Management and an MCSE in Private Cloud.

The Update Azure Modules UX feature has been deprecated

Microsoft changed the way to update your Azure Automation modules. Before, you clicked on the Update Azure modules button, and all modules had been updated. From now, when you click on it, you have the following message:

The Update Azure Modules UX feature has been deprecated. To improve your ability to control the module update process, the runbook that supports module update is available in GitHub as open source. You can now download the runbook and import it to your Automation account and run it whenever you want or have it run periodically on a schedule. You can also suggest changes to the runbook and they will be reviewed by the Automation team. We suggest that you download the open source runbook to your Automation account and use it to update your Azure modules. Learn more

Update Azure modules

Now, you need to create a new runbook, with the following script:

https://github.com/microsoft/AzureAutomation-Account-Modules-Update/blob/master/Update-AutomationAzureModulesForAccount.ps1

wp-image-14548

You can just run it, by clicking on Start or you can schedule it, to update your modules, every X days.

When you click on start, it will ask you some parameters. But, only 2 are mandatory:

  • ResourceGroupName: the name of the resource group where the automation account is located, with modules to update
  • AutomationAccountName: the name of the automation account, with modules to update

AutomationAccount

When the runbook starts, you will see the following message in the Modules menu:

Modules menu

Azure modules

When the script is finished, your modules have been updated:

Updated module

Found Florent’s article helpful? Looking for a reliable, high-performance, and cost-effective shared storage solution for your production cluster?
Dmytro Malynka
Dmytro Malynka StarWind Virtual SAN Product Manager
We’ve got you covered! StarWind Virtual SAN (VSAN) is specifically designed to provide highly-available shared storage for Hyper-V, vSphere, and KVM clusters. With StarWind VSAN, simplicity is key: utilize the local disks of your hypervisor hosts and create shared HA storage for your VMs. Interested in learning more? Book a short StarWind VSAN demo now and see it in action!