in class VMHostAccount : BaseDSC - Test, in VMware.vSphereDSC.psm1
Based on the logic and comments in ShouldUpdateVMHostAccount, the set password action should run if the test ShouldUpdateVMHostAccount returns $true (which is negated to $false) in the above line (this means the password is not in the desired state). However, the ShouldCreateAccountPermission test will always fail (negated to $true) if the password test says the password isn't in the desired state. This means the password is never updated for an existing account.
When attempting to update the password on an existing account using the VMHostaccount resource, the password is not updated.
This seems to be caused by this line:
return !$this.ShouldUpdateVMHostAccount($vmHostAccount) -or !$this.ShouldCreateAcountPermission($vmHostAccount)
in class VMHostAccount : BaseDSC - Test, in VMware.vSphereDSC.psm1
Based on the logic and comments in ShouldUpdateVMHostAccount, the set password action should run if the test ShouldUpdateVMHostAccount returns $true (which is negated to $false) in the above line (this means the password is not in the desired state). However, the ShouldCreateAccountPermission test will always fail (negated to $true) if the password test says the password isn't in the desired state. This means the password is never updated for an existing account.