Update-VaultFile is not updating comment

Update-VaultFile is not updating comment when using the -Properties parameter

Issue

When using Update-VaultFile to modify properties with the -Properties parameter and setting a custom comment with the -Comment parameter at the same time the comment is always "Property Edit".

Solution

As a workaround the command can be called two times. This will create two versions instead of one, but allows to see a custom comment in the file history directly after the edit.

So for example instead of

you could do this