Soru

Zorluk: OrtaConfigure Virtual Machine Scale Sets (VMSS)

An administrator is configuring an Azure Virtual Machine Scale Set (VMSS) named `vmss-web` to support automatic operating system (OS) image upgrades. The scale set currently uses a custom image from an Azure Compute Gallery and is configured with a manual upgrade policy.

Which sequence of actions should the administrator perform to configure and apply automatic OS image upgrades to the existing instances?

  1. 1Associate an Application Health Extension or an Azure Load Balancer health probe with the scale set.
  2. 2Set the upgrade policy mode of the scale set to Rolling.
  3. 3Enable the automatic OS image upgrade property (enableAutomaticOSUpgrade) in the scale set properties.
  4. 4Manually upgrade the existing scale set instances to the latest model.

Cevap

To enable and apply automatic OS image upgrades to existing instances of a VMSS, the administrator must first associate an Application Health Extension or health probe, set the upgrade policy mode to Rolling, enable the automatic OS image upgrade property, and finally manually upgrade the existing instances to the latest model.
The correct sequence starts with establishing health monitoring (via probe or extension) since it is a prerequisite for enabling automatic upgrades. The upgrade policy mode must then be changed to Rolling, followed by enabling the automatic OS upgrade property. Finally, because the VMSS was using a manual upgrade policy, the existing instances must be manually updated to the latest model to apply the new settings.

Adım Adım Çözüm

1
Configure application health monitoring by adding an Application Health Extension or linking an Azure Load Balancer health probe.
Azure has a mechanism to monitor the health of the application running on the scale set instances.
Automatic OS image upgrades require health monitoring to safely roll out updates without causing downtime.
2
Modify the upgrade policy of the scale set from Manual to Rolling.
The scale set is configured to roll out updates in batches.
Automatic OS upgrades are only supported when the upgrade policy mode is set to Rolling.
3
Set the enableAutomaticOSUpgrade property to true in the VMSS configuration properties.
The automatic OS upgrade feature is enabled in the scale set model.
This property instructs Azure to automatically apply new OS image versions published to the Azure Compute Gallery.
4
Perform a manual upgrade on the existing VMSS instances to bring them to the latest scale set model.
All existing instances are updated to the latest model configuration.
Since the VMSS used a manual upgrade policy, existing instances do not automatically pull model changes. They must be manually upgraded once to apply the new policy configuration.

Anahtar Kavram

Enabling automatic OS image upgrades on a VMSS requires configuring health monitoring (probe or extension), setting the upgrade policy to Rolling, enabling the automatic upgrade property, and manually upgrading existing instances to apply the new model configuration.
Bu soruyu puanla