The Problem
When we try to update Automation Account Azure Modules we are getting the message that the update feature has been deprecated.

The Solution
We can update the Automation Account Azure Modules by following the next steps.
Step 1. Download AzureAutomation-Account-Modules-Update
First, we must download the Azure Automation Account Modules Update from GitHub .
Step 2. Create Automation Account And Import Runbook
Next, we have to create a new automation account and import the runbook [Update-AutomationAzureModulesForAccount.ps1].

Step 3. Publish the Runbook
On the 3rd step, we Publish the Runbook.

Click Yes on the informational message.
Step 4. Start the Runbook
Select Start to open the Parameters form,

fill in the RESOURCEGROUPNAME and AUTOMATIONACCOUNTNAME parameters and click OK to begin.

The Result
The script has successfully executed as we can see below the output results.

Logging in to Azure (AzureCloud)...Environments                                                                                                           ------------                                                                                                           {[AzureChinaCloud, AzureChinaCloud], [AzureCloud, AzureCloud], [AzureGermanCloud, AzureGermanCloud], [AzureUSGovernme...Importing Array of modules : AzureRM.ProfileModule : AzureRM.Profile is already present with version 5.8.3. Skipping ImportChecking import Status for module : AzureRM.ProfileSuccessfully imported module : AzureRM.ProfileImporting Array of modules : Azure.Storage AzureRM.Automation AzureRM.Compute AzureRM.Profile AzureRM.Resources AzureRM.SqlModule : Azure.Storage is already present with version 4.6.1. Skipping ImportModule : AzureRM.Automation is already present with version 6.1.1. Skipping ImportModule : AzureRM.Compute is already present with version 5.9.1. Skipping ImportModule : AzureRM.Profile is already present with version 5.8.3. Skipping ImportModule : AzureRM.Resources is already present with version 6.7.3. Skipping ImportModule : AzureRM.Sql is already present with version 4.12.1. Skipping ImportChecking import Status for module : Azure.StorageSuccessfully imported module : Azure.StorageChecking import Status for module : AzureRM.AutomationSuccessfully imported module : AzureRM.AutomationChecking import Status for module : AzureRM.ComputeSuccessfully imported module : AzureRM.ComputeChecking import Status for module : AzureRM.ProfileSuccessfully imported module : AzureRM.ProfileChecking import Status for module : AzureRM.ResourcesSuccessfully imported module : AzureRM.ResourcesChecking import Status for module : AzureRM.SqlSuccessfully imported module : AzureRM.SqlImporting Array of modules : Azure AzureRM.StorageModule : Azure is already present with version 5.3.0. Skipping ImportModule : AzureRM.Storage is already present with version 5.2.0. Skipping ImportChecking import Status for module : AzureSuccessfully imported module : AzureChecking import Status for module : AzureRM.StorageSuccessfully imported module : AzureRM.Storage | 
