@Kubataly UsubalievI recommend utilizing Azure Update Manager. It allows you to check for updates, install updates, schedule updates, and perform periodic assessments to validate if the VMs are supported for guest patching. Another alternative is Azure Image Builder.
Hope this helps! Let me know if you have any follow-up questions or are needing a different solution.
If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.
If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.
Thank you for helping to improve Microsoft Q&A!