< Back

Get-OvfConfiguration

Sun Jan 19, 2020 6:51 pm

NAME 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>]





DESCRIPTION

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

properties are returned.





PARAMETERS

-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.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? true



-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.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

An object of type OvfConfiguration







NOTES









-------------------------- 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 LINKS

Online Version: https://code.vmware.com/doc/preview?id= ... ation.html