Patching and Updating Virtual Machine ScaleSets

杀马特。学长 韩版系。学妹 提交于 2019-12-13 20:10:31

问题


As I understand, Virtual Machine Scale Sets are a collection of Virtual Machines. Each one can be destroyed and reconstituted at the whim of the configuration. The VM's are recreated from a certain image. Is this understanding is correct ?

If this is correct, how do you patch a scaleset ?

Consider a scaleset created using a Windows 2016. 50 patches are made available via the update service since the base image was created. During a heavy load, 3 new VMs are created by the scaleset. The new VMs should load 50 patches before even going on-line. That could take hours. The patches might not work at all.

What is the best practice to handle this issue ?


回答1:


I would like to suggest to create the VMSS from a custom image. You could first deploy a windows 2016 and install the 50 patches, then make this as a custom VM image. This custom VM image includes any required application installs or configurations. Any VM instances created in the scale set use the custom VM image and are ready to serve your application traffic. In this tutorial you learn how to:

  • Create and customize a VM
  • Deprovision and generalize the VM
  • Create a custom VM image
  • Deploy a scale set that uses the custom VM image

You could make it with multiple methods.

Tutorial: Create and use a custom image for virtual machine scale sets with Azure PowerShell

Tutorial: Create and use a custom image for virtual machine scale sets with the Azure CLI

Add a custom image to an Azure scale set template




回答2:


The Windows Server images in the marketplace are continually updated (at roughly a monthly cadence) with all of the latest patches. Installing the latest version is a good starting point to keep your instances up-to-date.

In order to stay up-to-date on existing instances when new images are released, you can enable automatic OS image upgrades, which will safely update instances in a rolling fashion when a new version of the image is available.



来源:https://stackoverflow.com/questions/56121599/patching-and-updating-virtual-machine-scalesets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!