Get-OvfConfiguration

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

Syntax

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

Parameters

Required Parameter Name Type Position Features Description
required
Ovf
String named
  • wildcards
  • Specifies the local path to the OVF or OVA package for which the user-configurable options are returned. URL paths are not supported.
    optional
    Server
    VIServer[] named Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is provided or $null value is passed to this parameter, the command runs on the default servers. For more information about default servers, see the description of Connect-VIServer.

    Output

    VMware.VimAutomation.ViCore.Types.V1.Ovf.OvfConfiguration

    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.

    Related Commands

    Feedback

    Was this page helpful?