Yes and yes.
Original Message:
Sent: May 30, 2024 06:13 AM
From: Rotoi
Subject: Add vTPM using New-Hvpool and json file
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 ?
Original Message:
Sent: May 29, 2024 01:15 PM
From: LucD
Subject: Add vTPM using New-Hvpool and json file
You can read the file and pass the values on the parameters of the function.
------------------------------
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Original Message:
Sent: May 29, 2024 11:58 AM
From: Rotoi
Subject: Add vTPM using New-Hvpool and json file
Can this be used with the .json file I exported in powershell ?
Original Message:
Sent: May 28, 2024 07:09 AM
From: LucD
Subject: Add vTPM using New-Hvpool and json file
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
Original Message:
Sent: May 28, 2024 06:46 AM
From: Rotoi
Subject: Add vTPM using New-Hvpool and json file
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