Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178257

How to rename a CivApp?

$
0
0

Hi,

 

Trying to do the simplest task of renaming a CIvApp with PowerCLI.

 

$civapp = Get-CIvApp "Test"
$newname = $civapp.Name + "_OLD"
Set-CIVApp -vApp $civapp -Name $newname
Set-CIVApp : 8/6/2013 5:50:25 PM    Set-CIVApp        Interrupting the reading of an HTTP request, as its body is too long: >524288 bytes
At line:1 char:11
+ Set-CIVApp <<<<  -vApp $a -Name $ren    + CategoryInfo          : NotSpecified: (:) [Set-CIVApp], VimException    + FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.Cloud.Commands.Cmdlets.SetCIVApp

 

Also tried extensiondata property:

 

$civapp = Get-CIvApp "Test"
$civapp.ExtensionData.Name = $civapp.ExtensionData.Name + "_OLD"
$civapp.ExtensionData.UpdateServerData()
Exception calling "UpdateServerData" with "0" argument(s): "Interrupting the reading of an HTTP request, as its body is too long: >524288 bytes"
At line:1 char:34
+ $a.ExtensionData.UpdateServerData <<<< ()    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException    + FullyQualifiedErrorId : DotNetMethodException

 

 

I also tried setting the description of the CIvApp as per the example but that errors too.

 

 --------------  Example 1 --------------
 C:\PS>$myVApps = Get-CIVApp -Name 'MyVApp*'
 $myVApps | Set-CIVApp -Description 'This is one of my VApps.'
 Retrieves all vApp with names starting with MyVapp and changes their descriptions to "This is one of my vApps."

 

Any ideas? Is my vApp too large? 26 VM's.How do I narrow down the "Update Server Data" to only update what I want and not all the networking sections etc...?


Viewing all articles
Browse latest Browse all 178257

Trending Articles