## PowerCLI Reference

# Set-CIVAppTemplate

## Synopsis

This cmdlet modifies the configuration of the specified vApp template.

Syntax

Set-CIVAppTemplate [-VAppTemplate] <CIVAppTemplate[]> [-Server <CIServer[]>] [-Name <String>] [-Description <String>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]
Set-CIVAppTemplate [-VAppTemplate] <CIVAppTemplate[]> [-Server <CIServer[]>] [-StorageLease <TimeSpan>] [-InformationAction <ActionPreference>] [-InformationVariable <String>] [-PipelineVariable <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Related Commands

Online version
Get-CIVAppTemplate
New-CIVAppTemplate
Import-CIVAppTemplate
Remove-CIVAppTemplate

Detailed Description

This cmdlet modifies the configuration of the specified vApp template.

Parameters

Name | Type | Description | Required? | Pipeline Input | Default Value
--- | --- | --- | --- | --- | ---
VAppTemplate | CIVAppTemplate[] | Specifies the vApp template you want to modify. | true | true (ByValue)
Confirm | SwitchParameter | If the value is $true, indicates that the cmdlet asks for confirmation before running. If the value is $false, the cmdlet runs without asking for user confirmation. | false | false
Description | String | Specifies a new description for the vApp template you want to modify. | false | false
InformationAction | ActionPreference |  | false | false
InformationVariable | String |  | false | false
Name | String | Specifies a new name for the vApp template you want to modify. | false | false
PipelineVariable | String |  | false | false
Server | CIServer[] | Specifies the cloud servers 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-CIServer. | false | false
StorageLease | TimeSpan | 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. | false | false
WhatIf | SwitchParameter | Indicates that the cmdlet is run only to display the changes that would be made and actually no objects are modified. | false | false

Return Type

Zero or more modified CIVAppTemplate objects

Notes

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.

Copyright © VMware, Inc. All rights reserved.