Manage Windows Updates on an Azure VM using Azure Automation

This set of runbooks demonstrates how you could install / manage Windows Updates on an Azure VM, as demonstrated in the Azure Automation announcement. It is intended for demonstration purposes only and is not meant for production use.

4.5 Star
1,697 times
Add to favorites
Windows Azure
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Will this work with VMs created with ARM
    1 Posts | Last post January 25, 2017
    • Are there updated scripts that work with VMs created with ARM?
  • More than one subscription
    1 Posts | Last post July 04, 2016
    • Can use this script for more than one subscription? 
      For example..i have 4 subscriptions with 20 VMs in each subscription. 
  • Update-AzureVM
    2 Posts | Last post July 22, 2014
    • I think you need to replace some variable assignement in the script with the asset in the runbook
          $AzureConnectionName = "joeAzure"
          $CredentialAssetNameWithAccessToAllVMs = "joeAzureVMCred"
          $CredentialWithAccessToAllVMs = Get-AutomationPSCredential -Name $CredentialAssetNameWithAccessToAllVMs
          $WUModuleStorageAccountName = "joestorage123"
          $WUModuleContainerName = "psmodules"
          $WUModuleBlobName = ""
          $ModuleName = "PSWindowsUpdate"
    • The description already covers replacing $AzureConnectionName, $CredentialAssetNameWithAccessToAllVMs, $WUModuleStorageAccountName, and $WUModuleContainerName in the runbook.