VR synchronization failed by "An encryption key is required"
Get-VM|Where-Object {$_.ExtensionData.Runtime.CryptoState -eq 'locked'} | Unlock-VM
This cmdlet can get all locked VM and unlock them together.
2. VC UI When we encounter the issue the VM goes to invalid state, VM(invalid),
go to VM Summary tab -> issues and alaram -> Virtual Machine Locked Alarm -> Actions -> Unlock VM.