PowerShell examples for UpdateManagement
These are samples intended for use with Update Management pre/post scripts.
You will need:
- An Automation Account + linked Log Analytics workspace with Update Management enabled
- A RunAs account for interacting with the Azure services used by these scripts
- If you are using these scripts for VMs across multiple subscriptions, be sure to add the RunAs service principle to those subscriptions as a role with the correct permissions
- The ThreadJob module imported into your Automation Account
- The latest versions of the AzureRM modules