Update VMware.VMEncryption.psm1

This commit is contained in:
simonfangyingzhang
2018-04-27 04:50:10 +01:00
committed by GitHub
parent 049e621fb6
commit 9bd66f1a66

View File

@@ -69,6 +69,13 @@ New-VIProperty -Name vMotionEncryption -ObjectType VirtualMachine -Value {
$VM.ExtensionData.Config.MigrateEncryption
} -BasedOnExtensionProperty 'Config.MigrateEncryption' -Force | Out-Null
New-VIProperty -Name KMSserver -ObjectType VirtualMachine -Value {
Param ($VM)
if ($VM.Encrypted) {
$VM.EncryptionKeyId.ProviderId.Id
}
} -BasedOnExtensionProperty 'Config.KeyId' -Force | Out-Null
New-VIProperty -Name Encrypted -ObjectType HardDisk -Value {
Param ($hardDisk)
$hardDisk.ExtensionData.Backing.KeyId -ne $null