vCloud Director Storage Profiles
Hi all I'm trying to put together a script to setup new Organisation and Virtual Datacentres in our vCloud 5.1 environment. The problem I've come up against is that I can't specific what storage...
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 ArticleStorage Profiles
Hello I am doing some testing with powercli and vCloud director. PowerCLI C:\> $storage = Get-OrgVdc -name OrgvdcPowerCLI C:\> $storage.StorageLimitGB200 200 is actually the combined storage from...
View ArticleAdd a VM to a vApp using PowerShell
Hello, I am trying to add a VM to a vApp using PowerShell. I know that there is no explicit cmdlet to do it, and I need to recompose the vApp. I've used the great Instantiation script from...
View ArticleSnapshots with vCloud Director 5.1 & PowerCLI 5.1
(cross-post from vCloud forum) Now that vCloud Director 5.1 supports snapshots, I am looking at the PowerCLI 5.1 cmdlets and cannot find a way to create/manage/revert snapshots. I see it is there in...
View ArticleError when cloning a VM related to vCloud Director
Hey there!I have the following cmdlet: New-VM -Name ClonedVM -VM SourceVM -Datastore NewDS -VMHost ESXi -Location Folder -Confirm:$false The problem is that I'm trying to clone a VM that is a part of...
View ArticleUnable to connect to VCloud Director 5.1 build 5.1.1.868405
Hi. We are not able to connect to a VCloud Director ver. 5.1.1 868405. When we try a: connect-ciserver we get the following error: Connect-CIServer The underlying connection was closed: The...
View ArticlePowerCLI for media replication with vCloud 5.1
We have several different vCloud instances each housing several distinct vOrgs (each vCloud instance has a Cloudlibrary vOrg for making ISOs available). I'm looking for a way to replicate media from...
View ArticleConnect-CIServer -Server vcloud.ourdomain.com Issues
Hi I have now tried PowerCLI with ESX and vCenter, so far so good.We have a vCLoud Area as well (v5.5) So when i listed the VMs in vCenter, for area folder 'vCloud Director' this worked but the links...
View ArticleModify vApp network - set all to "Retain IP / MAC Resources"
vCloud Director 5.1.3 having a power outage, and looking to modify all vApp networks and set "Reatin IP / MAC Resources" to true so the NAT addresses are retained while vApps are down. Anyone have a...
View Articleexporting firewall/NAT rules from Edge Gateway
Anyone using a powerCLI script to output firewall/nat rules for Edge Gateways (ver 5.1.2) configured on Org VDC networks for documenation purposes? I've been able to pull plenty of information using...
View ArticleGet and Set NAT config
Hi all, I am trying to read and write the NAT config for a larger vApp with complex rules with PowerCLI as whenever the vApp get's added to a different org from catalog all is gone. This vApp needs to...
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 ArticleNew-vm in vCloud Director with PowerCli 5.5
Hi, I have been working with Powercli on scripting the creation of multiple VM's inside a vApp and cant seem to get anywhere with the new-vm command.As each vApp will have a different number of VM's i...
View ArticleTrouble adding more "CIVM" to a "CIVApp" in vCloud via PowerCLI 5.5
Hi All,I am having trouble performing some tasks in PowerCLI that I can do easily in the GUI. Firstly, in the vCloud Director GUI, I can create a new vApp from a template that has one machine in it. I...
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 ArticleAdding two new Storage Policies to a couple of OrgvDCs
Hi , I have a working script for adding a new Storage Policy to a named OrgvDC (Thanks to 900 Foot VM)Now my Customer would like to add two new Storage Policies (already attached to the PvDC) to ~60...
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 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 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 Article