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