Set-CIVAppTemplate Command | Vmware PowerCLI Reference

Set-CIVAppTemplate

This cmdlet modifies the configuration of the specified vApp template.

Syntax

Set-CIVAppTemplate
-VAppTemplate < CIVAppTemplate[] >
[-Description < String > ]
[-Name < String > ]
[-ProgressAction < ActionPreference > ]
[-Server < CIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VAppTemplate CIVAppTemplate[] named
  • pipeline
Specifies the vApp template you want to modify.
optional Description String named
Specifies a new description for the vApp template you want to modify.
optional Name String named
Specifies a new name for the vApp template you want to modify.
optional ProgressAction ActionPreference named
optional Server CIServer[] named
Specifies the cloud servers 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 the Connect-CIServer cmdlet.
Set-CIVAppTemplate
-VAppTemplate < CIVAppTemplate[] >
[-ProgressAction < ActionPreference > ]
[-Server < CIServer[] > ]
[-StorageLease < TimeSpan > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
VAppTemplate CIVAppTemplate[] named
  • pipeline
Specifies the vApp template you want to modify.
optional ProgressAction ActionPreference named
optional Server CIServer[] named
Specifies the cloud servers 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 the Connect-CIServer cmdlet.
optional StorageLease TimeSpan named
Specifies the maximum amount of time for the vApp to remain stopped before vCloud Director automatically marks it as expired, or deletes it, depending on the organization policy. To specify that the lease is unlimited, pass $null.

Output

VMware.VimAutomation.Cloud.Types.V1.CIVAppTemplate

Examples

Example 1

$timeSpan = New-Object System.Timespan 1,2,3 #one hour, two minutes, three seconds
Set-CIVAppTemplate -VAppTemplate 'MyVAppTemplate' -StorageLease $timeSpan

Modifies the storage lease for the specified vApp template to one hour, two minutes, and three seconds.

Example 2

Get-CIVAppTemplate -Name 'MyVAppTemplate' | Set-CIVAppTemplate -Name 'MyNewVAppTemplateName' -Description 'The name and description of this vApp template have been modified.'

Modifies the name and description of the specified vApp template.

Related Commands

CIVApp

This cmdlet retrieves virtual appliances in the cloud.

This cmdlet imports a virtual machine from the underlying vSphere to the cloud.

This cmdlet creates a new vApp.

This cmdlet removes vApps from the cloud.

This cmdlet restarts the specified vApp.

This cmdlet modifies the configuration of the specified vApps in the cloud.

This cmdlet starts the specified vApp.

This cmdlet stops the specified vApp.

This cmdlet suspends the specified vApp.

CIVAppGuest

This cmdlet restarts the guest operating systems of all virtual machines in the specified vApp.

This cmdlet shuts down the guest operating systems of all virtual machines in the specified vApp.

CIVAppNetwork

This cmdlet retrieves the vApp networks available on a vCloud Director server.

This cmdlet creates a new vApp network.

This cmdlet removes the specified vApp networks if they are not in use.

This cmdlet modifies the configuration of the specified vApp networks.

CIVAppStartRule

This cmdlet retrieves the start rules for virtual machines in a specified vApp.

This cmdlet modifies the start rules for virtual machines in the specified vApp.

CIVAppTemplate

This cmdlet retrieves vApp templates.

This cmdlet imports a virtual machine or an OVF package from vCenter Server to vCloud Director as a vApp template.

This cmdlet creates a new vApp template.

This cmdlet removes the specified vApp template.

This cmdlet modifies the configuration of the specified vApp template.