...
- If the host does not require a reboot, Azure will pause your VM, patch the host, and then resume the VM
- If the host does require a reboot, you will, typically, get notice 35 days in advance
Why does my VM still show pending maintenance even after a deallocate/restart or redeploy?
- There exists an edge case where after you issue a deallocate/restart or a redeploy your VM may start on a host that is still scheduled for maintenance. This is a known scenario with no good fix other than another deallocate/restart or redeploy.
Links
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/maintenance-notifications
...