PowerCLI Reference

Get-OvfConfiguration

Synopsis

This cmdlet retrieves the OVF configuration object for the specified OVF or OVA package.

Syntax

Get-OvfConfiguration [-Ovf] <String> [-Server <VIServer[]>] [<CommonParameters>]

Related Commands

Online Version

Detailed Description

This cmdlet retrieves the OVF configuration object for the specified OVF or OVA package. Only user-configurable properties are returned.

Parameters

NameTypeDescriptionRequired?Pipeline InputDefault Value
OvfStringSpecifies the local path to the OVF or OVA package for which the user-configurable options are returned. URL paths are not supported.trueFalse
ServerVIServer[]Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.falseFalse

Return Type

An object of type OvfConfiguration

Notes

Examples

-------------------------- Example 1 --------------------------

$ovfPath = "myOvfTemplate.ovf"
$ovfConfig = Get-OvfConfiguration -Ovf $ovfPath
$ovfConfig.vami.VM1.ip0.Value = "10.23.101.2"
$ovfConfig.vami.VM2.ip0.Value = "10.23.101.3"
Import-VApp $ovfPath -OvfConfiguration $ovfConfig -VMHost $vmHost

Modifies a specific OVF property and passes it to the Import-VApp cmdlet.


Copyright © VMware, Inc. All rights reserved.