Onboard machines for Update Management from Powershell
All the ways of onboarding VMs to Update Mangement and Inventory rely on runbooks and the portal. This isn't very helpful when your environment build is completely automated.
So whilst I can create a SoftwreUpdateConfiguration in Powershell, I can't get the servers in there to be able to run it against.
Neil Ashby-Senior commented
I haven't found a good way of doing this yet. The Powershell scripts/runbooks I can find are bloated and not really that efficient. Plus, as you say Gary, it's a stop gap solution anyway. Voted up.
This is what I have found: https://docs.microsoft.com/en-us/azure/automation/update-management/enable-from-runbook
I'll keep looking but I think that is as good as it'll get but it does not fulfill all my requirements.
Queiroz, Caio (Barueri) commented
Same case for me.
To be more complete, ideally this will be part of the API so Terraform can add the update extension as part of the VM build and register it with the automation account. Powershell would be a stop gap solution for me.
I have fully automate deployment and i would like to do the same for update but we cant automate the enrollment of VM...