vmware / PowerCLI-Example-Scripts

http://blogs.vmware.com/powercli
Other
743 stars 601 forks source link

Add vTPM using New-Hvpool and json file #632

Open GitH49 opened 1 month ago

GitH49 commented 1 month ago

Describe the bug

I exported a desktop pool properties in a json file then edited the AddVirtualTPM property from false to true. However, when running New-hvpool with -spec parameter on the newly edited json file, the created desktop pool doesn't have the TPM option enabled. It looks like the addVirtualTPM to true is not taken into account in the json file.

Reproduction steps

  1. Export a desktop pool properties in a json file
  2. Edit the json file to add vtpm with AddVirtualTPM to true
  3. Create the pool with the New-Hvpool -Scpec "jsonfile" command

Expected behavior

Of course, the created pool should have the TPM option enabled. This is not the case.

Additional context

No response