Ability to schedule the exact reboot time
In our update installation process, we need to communicate to our clients as precisely as possible the time when the servers will be offline (rebooting).
Right now, we start installing updates 30 minutes before the agreed upon time and delay rebooting the servers until that time. We would love to be able to do this using Update Management.
There is an ability to schedule a deployment that only reboots and does not install updates. You could use this in conjunction with a deployment that “Never reboots” in order to adhere to a strict reboot window. Does that work?
Justin Galbraith commented
While this is a pretty good work-around, it would still be nice to have this supported natively in the tool.
Woodruff, Matthew M commented
I had a similar issue... you could leverage the "never reboot" feature of update management, and then create separate automation runbook that reboots those VM's at a particular time. Not exactly what you're going for, but it works.
I still don't see a way to set it using the latest Az PowerShell (1.5.0 preview).
The Automation REST API and the Azure SDK for .NET provide a "RebootSetting" on Windows and Linux configuration objects (https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.management.automation.models.windowsproperties.rebootsetting?view=azure-dotnet), but the PowerShell module does not touch those properties: https://github.com/Azure/azure-powershell/blob/master/src/Automation/Automation/Common/AutomationPSClientSoftwareUpdateConfiguration.cs#L50-L63
The solution with two deployments ("never reboot" + "always reboot") works as expected when configured from the Azure Portal. Unfortunately, there does not seem to be a way to set reboot options via PowerShell yet (New-AzAutomationSoftwareUpdateConfiguration/New-AzureRMAutomationSoftwareUpdateConfiguration), so we are still effectively blocked from using Update Management at scale - clicking through 30 deployments each month is not feasible.
Yes, it should be perfectly sufficient for our needs. We will try it with October updates.