An administrator is deploying an Azure Virtual Machine Scale Set named `vmss-worker`. The scale set will run a containerized background processing application. The startup script of the application registers each virtual machine instance with an external monitoring service. You need to ensure that the scale set does not provision temporary, excess virtual machine instances during scale-out events, as this leads to orphaned registrations in the monitoring service. What should you do?
- Set the overprovision property of the Virtual Machine Scale Set to false.Answer
- BSet the upgrade policy of the Virtual Machine Scale Set to Manual.
- CSet the scale-in policy of the Virtual Machine Scale Set to NewestVM.
- DSet the singlePlacementGroup property of the Virtual Machine Scale Set to false.
Answer
Disable overprovisioning by setting the overprovision property of the Virtual Machine Scale Set to false.
Disabling overprovisioning by setting the overprovision property to false prevents Azure from spinning up temporary, excess virtual machine instances during scale-out events. This ensures that only the requested number of instances are provisioned and initialized, preventing orphaned registrations in external services like monitoring tools.
Step-by-Step Solution
Key Concept
Disabling Virtual Machine Scale Set (VMSS) overprovisioning prevents the creation and subsequent immediate deletion of temporary virtual machine instances during scale-out events, which is critical when initialization scripts perform external registrations.