The VM (Virtual Machine) Power On operation is attempted immediately following the VM reconfiguration.
vCenter Task Error: The available memory resources in the parent resource pool are insufficient for the operation.VMware vCenter 8.x
The product works as per the design.
The VM configuration is updated every 60 seconds for optimization and improve performance.
Workaround:
Method 1: Manual Delay
After reconfiguring the VM memory via the API, wait at least 1 minute before attempting to power on the virtual machine. This allows the background configuration refresh to complete.
Method 2: Adjust Advanced DRS Options
If you require immediate power-on capabilities without a delay, you can disable the specific optimization that causes the 60-second lag: