How to Extract OVA file config parameters | Deploy OVA file using powercli

For Extracting the OVA config parameters follow below steps:


1) From vSphere PowerCLI connect to vCenter


        Connect-VIServer <Vcenter IP>  


2) Define $ovfPath as the .OVA file PATH


      $ovfPath = "c:\ranjith.ova"

3) Get Get-OvfConfiguration :$ovfConfig = Get-OvfConfiguration -Ovf $ovfPath

4) Now from $ovfConfig we can extract by converting to hash table as below.

$ovfconfigHashTable = $ovfconfig.ToHashTable()

$ovfconfigHashTable.Keys | Sort-Object

 
>> will list all the parameters.





No comments:

Post a Comment

Selenium firefox driver session fails with : Could not start a new session. Response code 500. Message: Expected browser binary location, but unable to find binary in default location,

 Error: With Firefox driver /gecko driver Could not start a new session. Response code 500. Message: Expected browser binary location, but u...