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?
- 1Associate an Application Health Extension or an Azure Load Balancer health probe with the scale set.
- 2Set the upgrade policy mode of the scale set to Rolling.
- 3Enable the automatic OS image upgrade property (enableAutomaticOSUpgrade) in the scale set properties.
- 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
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.