Hi Seshu, I want to help you with this question.
A distinction is made between two types of virtual machine maintenance.
- The update does not require a reboot (Azure will pause the host for few seconds) or
- the update requires a reboot.
If an update requires a reboot, you will receive a notification and can trigger the reboot within 35 days (for non-critical updates) via CLI or Powershell.
Command for Powershell:
Check out also the following docs about vm maintenance:
https://learn.microsoft.com/en-us/azure/virtual-machines/maintenance-notifications
Maybe helpful:
To ensure a high availability a virtual machine availability set is recommended. This way not all VMs will be updated at the same time.
If the reply was helpful, please don’t forget to upvote or accept it as an answer, thank you.