When setting a host profile with the reboot option via API, the ESXi host does not reboot automatically
search cancel

When setting a host profile with the reboot option via API, the ESXi host does not reboot automatically

book

Article ID: 373468

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

When you set a host profile to be used via the API while also setting reboot to true, the host will not reboot.  That requires a second API call in order to execute the reboot

Environment

In vCenter 7 and above, you can apply host profiles at the host, cluster, datacenter, or even vCenter level.

Cause

Setting the reboot section relating to an ESXi host does not automatically trigger a reboot

Resolution

You will need to first apply the host profile, then trigger the reboot in a separate API call