Your company has an Azure Virtual Machine Scale Set named vmss-processing. The scale set is configured with autoscale rules and currently runs five instances. One of the instances, vmss-processing_3, is currently running a critical, long-running database validation task that must not be interrupted. The remaining instances are idle. You expect a scale-in event to be triggered shortly due to low overall CPU utilization. You need to prevent vmss-processing_3 from being terminated during the scale-in event, without affecting the scaling behavior of the other instances. What should you do?
- From the scale set instances blade, select vmss-processing_3 and enable instance protection.Cevap
- BChange the scale-in policy of the vmss-processing scale set to NewestVM.
- CChange the upgrade policy of the vmss-processing scale set to Manual.
- DConfigure a Resource Lock of type CanNotDelete on the resource group containing vmss-processing.
Cevap
From the scale set instances blade, select vmss-processing_3 and enable instance protection.
Enabling instance protection on a specific scale set instance ensures that the autoscale engine will not select it for termination during a scale-in event. Other, unprotected instances remain subject to normal scale-in actions, ensuring correct overall scaling behavior without interrupting the critical task running on the protected instance.
Adım Adım Çözüm
Anahtar Kavram
Instance Protection in Azure Virtual Machine Scale Sets allows administrators to protect specific virtual machine instances from being terminated during autoscale scale-in events.