You are configuring an Azure Virtual Machine Scale Set (VMSS) named `vmss-finance` to handle a queue-based processing workload. The scale set is configured with a Flexible orchestration mode, a current instance count of 8, and a Manual upgrade policy. You need to configure a scale-in policy to ensure that when the queue depth decreases and the scale set scales in, the virtual machines that have been running the longest are deleted first. Which scale-in policy should you configure?
- OldestVMCevap
- BNewestVM
- CDefault
- DOldestInstance
Cevap
OldestVM
The correct policy is 'OldestVM'. This policy deletes the oldest virtual machine in the scale set based on its creation time. This satisfies the requirement to delete the virtual machines that have been running the longest.
Adım Adım Çözüm
Anahtar Kavram
Azure VMSS Scale-In Policies