code: public VirtualMachineScaleSetVMInner update(String resourceGroupName, String vmScaleSetName, String instanceId, VirtualMachineScaleSetVMInner parameters) {
          return updateWithServiceResponseAsync(resourceGroupName, vmScaleSetName, instanceId, parameters).toBlocking().last().body();
      }
docs: Updates a virtual machine of a VM scale set.
  
  @param resourceGroupName The name of the resource group.
  @param vmScaleSetName The name of the VM scale set where the extension should be create or updated.
  @param instanceId The instance ID of the virtual machine.
  @param parameters Parameters supplied to the Update Virtual Machine Scale Sets VM operation.
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws CloudException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the VirtualMachineScaleSetVMInner object if successful.