Setting properties of VMs in a vApp
I have a few vApps with 25 VMs each in vCloud Director and would like to set a few properties to on / off with PowerCLI as the gui is a mission. These options include: Set "Enable guest customization"...
View ArticleImport template/VM to vCloud Director catalog with PowerCLI
This is a 2 part question: Part 1: I have about 24 virtual machines/templates in VC and would like to automate the import of these into the vCD catalog instead of doing it though the gui. I don't need...
View ArticleAdding networks to vApps in vCloud Director
Has anyone been down this road? I need to script the adding and deleting of networks in the vApp. Is it possible in PowerCLI or the ExtensionData to: - Delete a network from a vApp - Add a...
View ArticleAdding a vApp to Catalog in vCD with PowerCLI
I would like add a vApp to a Catalog via PowerCLI. I can't see any methods under the extensiondata of the vApp that allow for this. Then I thought maybe I need to look from the Catalog side and could...
View ArticleWeird error with Search-Cloud...
I ran thw Search-Cloud command for the first time and got error stating it didn't know what "Type" was. So I ran the help and checked the online version of help too and example 2 has the following:...
View ArticleDTD is prohibited in this XML document
I am trying to use "connect-ciserver <servername>", and after entering my credentials, I get the following error message: Connect-CIServer : 5/10/2012 2:22:57 PM Connect-CIServer For...
View ArticleIssue with New-OrgNetwork in vCloud 5.1
Hi, I'm trying to create an OrgVDC Network for my newly created OrgVDCs via PowerCLI. Unfortunately I'm getting an erorr stating: New-OrgNetwork : 3/21/2013 2:03:45 PM New-OrgNetwork The...
View ArticleDeleting CIVM from a CIvApp
Hi, I would like to remove a specific CIVM from a CIvApp. The CIvApp is stopped and powered off. The following bit of code works but performance is inconsistent. Sometimes it takes a few seconds,...
View ArticleGet-Task Error
Hi, I get the following error running get-task. I seems to display the first 3000 odd tasks but then errors: PS C:\> get-taskjobDelete Success 100 11:18:48 AM...
View ArticleHow to rename a civAppNetwork?
Hi, I would like to rename a CIvAppNetwork from vAppNetwork to IntNat with PowerCLI. I've tried the following:$civapp | Get-CIVAppNetwork | Set-CIVAppNetwork...
View ArticleMigrate CIvAPP from one Resource Pool to another?
Hi, I'm looking for a way to migrate/vmotion the VM's in a CIvApp from 1 resource pool to the another in the same OrgVDC. Basically want to vmotion the VM's to another host. The hosts in the other...
View ArticleHow to rename a CivApp?
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...
View ArticleSetting Guest Customization Section Fails in 5.5
Hi, Since migrating to vCloud 5.5 the following script fails which worked in 5.1: $CIVMs = get-CIvApp $CIvAppName | get-civm Foreach ($vm in $CIVMs) { write-host "Customizing" $vm.name...
View ArticleSample Script: Creating an Empty vApp with vCloud PowerCLI
Hi Everyone, The New-CIVApp cmdlet does not allow us to create empty vApps (which can be useful when templating out network configurations, for example). This shortcoming can be overcome by calling the...
View ArticleHow to delete a deployed VApp using vCloud Dir PowerCLI commands
Using vCloud 1.5 and PowerCLI, along with some nifty scripts I found online, I can instantiate a vCloud VApp Template and can start and stop the VApp as well, all through vCloud....
View ArticleSample script to modify vApp (Network, Firewall Rules, Start/Stop Order,...
Hi allI would like to share a script I developed the last few days. What the script does:- Add an internal network called "Internal" with NAT/Firewall to a vApp- Add Firewall rules (f.e. RDP)- Set the...
View ArticlevCloud: vShield Edge FW Rules
Hi all I'm looking for a way to get and set firewall rules on a vShield Edge firewall in a vCloud environment. My final target is to write two scripts; one that will export the firewall rules from a...
View ArticleIssue with New-OrgNetwork in vCloud 5.1
Hi, I'm trying to create an OrgVDC Network for my newly created OrgVDCs via PowerCLI. Unfortunately I'm getting an erorr stating: New-OrgNetwork : 3/21/2013 2:03:45 PM New-OrgNetwork The...
View ArticleGet-CINetworkAdapter, extremely slow in bulk (20 minutes)
Hi, I'm trying to get all Vm's and thier external ip address, to do some scripted DNS.But it takes almost 20 minutes to complete for 136 machines. @ PowerCLI 5.1 Release 2 build 1012425 &...
View ArticleGateway address and subnet mask have to be provided...
I am trying to get this script working for creating an OrgNetwork in vCD 5.1. When I run it I get an exception saying that "Gateway address and subnet mask have to be provided when creating...
View Article