Automation

 View Only
  • 1.  Add vTPM using New-Hvpool and json file

    Posted May 28, 2024 07:06 AM

    Hi,

    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. Is there a way to add vTPM to a pool that is created with the new-hvpool command ?

    Thanks



  • 2.  RE: Add vTPM using New-Hvpool and json file

    Posted May 28, 2024 07:10 AM

    Have you tried Wouter's function from [REST]Pushing a new image Horizon 8 2206 style – Retouw.nl



    ------------------------------


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference


    ------------------------------



  • 3.  RE: Add vTPM using New-Hvpool and json file

    Posted May 29, 2024 01:15 PM

    Can this be used with the .json file I exported in powershell ?




  • 4.  RE: Add vTPM using New-Hvpool and json file

    Posted May 29, 2024 01:16 PM

    You can read the file and pass the values on the parameters of the function.



    ------------------------------


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference


    ------------------------------



  • 5.  RE: Add vTPM using New-Hvpool and json file

    Posted May 30, 2024 07:19 AM

    You mean read the .json file data with Get-Content, somehow extract the all the values that are needed, then pass them as parameters in the function ?

    But for this, API REST usage is still required ?




  • 6.  RE: Add vTPM using New-Hvpool and json file

    Posted May 30, 2024 07:19 AM

    Yes and yes.



    ------------------------------


    Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference


    ------------------------------