When you use a REST API function such as /rest/vcenter/vm/{vm-id}, the call might fail with an error message such as Internal server error: Error: Http error 500 while requesting '/rest/vcenter/vm/vm-12’.
The issue occurs because the networkBootProtocol might does not persist in the vCenter Server database after reconfiguring the VM.
As a result, when vCenter Server restarts, the networkBootProtocol value is not available and the REST API function /rest/vcenter/vm/{vm-id} fails.