Syntax
Get-OvfConfiguration [-Ovf] <String> [-Server <VIServer[]>] [<CommonParameters>]Related Commands
Online versionDetailed Description
This cmdlet retrieves the OVF configuration object for the specified OVF or OVA package. Only user-configurable properties are returned.Parameters
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
Ovf | String | Specifies the local path to the OVF or OVA package for which the user-configurable options are returned. URL paths are not supported. | true | false | |
Server | VIServer[] | 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. | false | false |
Return Type
An object of type OvfConfigurationNotes
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.