You are configuring an Azure Virtual Machine Scale Set (VMSS) named `vmss-sales` that uses Uniform orchestration, has an initial instance count of , and uses an Automatic upgrade policy. The scale set is deployed in a subnet that has only available private IP addresses. You plan to configure an autoscale rule to scale out the VMSS by instances. You need to ensure that the scale-out operation succeeds without failing due to a lack of available IP addresses. Which configuration change should you apply to the scale set?
- Set the `overprovision` property of the scale set to `false`.Answer
- BSet the upgrade policy of the scale set to Manual.
- CSet the orchestration mode of the scale set to Flexible.
- DConfigure a scale-in policy of OldestVM.
Answer
Set the `overprovision` property of the scale set to `false`.
The correct option is to set the `overprovision` property of the scale set to `false`. By default, Virtual Machine Scale Sets have overprovisioning enabled, which means Azure provisions more VMs than requested to speed up deployment times. Once the requested number of instances are healthy, the extra instances are deleted. In a subnet with constrained IP availability (only IPs available), overprovisioning instances could cause the deployment to fail because the total number of provisioned VMs during the operation might exceed . Disabling overprovisioning ensures exactly instances are provisioned, consuming only IP addresses.
Step-by-Step Solution
Key Concept
Disabling VMSS overprovisioning to prevent IP exhaustion in constrained subnets during scale-out operations.