Accessing vCloud REST API with Powershell
Hello, I have come to the conclusion that the new vCLoud cmdlets are not enough for what I plan on doing, and I plan to extend upon the cmdlets by using the API via REST. I have been fiddling with...
View ArticlePowerShell Script to move VM's between vCloud vApps
Hi, I am looking to build a powershell script which will allow me to move/migrate the VM's from vApp in a Org vDC to another vApp in another Org vDC in the same organization. I was Import-CIVApp...
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 ArticleStart-Job with PowerCLI not working
This script never gets past the first write-host line in the start-job... # Do work$csv = Import-Csv tmpbuild.csv foreach ($item in $csv) { Start-Job -RunAs32 -ScriptBlock { # Add...
View ArticleVcloud powerCLi - VM inventory report
HI all, So i wrote this quick script to generate a report of VMs info and more specifically, who owns them. The issue is that I am getting some rows with nothing but the Owner, and all the other...
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 ArticleAnyone building vCD vApps with powershell?
Hi, I'm trying to write a script to import some (previously backed up) VMs from vCenter into vCD, build up a vapp with them and then save it to a catalog. It's a script to replace a lengthy manual...
View Articlepowercli 64-bit throws System.OutOfMemoryException
Hi, I am trying to import a multi-vm vApp template in to vCloud Director 1.5 using the import-civapptemplate commandlet. The command fails almost immediately. Any ideas on how to get around this?...
View Articlefirewall rules
hi! is there a way to set ports or firewall rules with the powerCLI? Only found set-ciAccessControlRules but that doesn't seem to bethe right cmdlet... thanks. Ralf.
View ArticlevCloud Director change organization limits
Hi, I have been able to find most organization settings, but cannot find where to set these using PowerCLI: Number of resource intensive operations per userNumber of resource intensive operations per...
View ArticleAutomating vCloud: "Disable Host" and "Redeploy All VMs"
Are these two functions available through any API/SDK? I cannot seem to find it for PowerCLI or the REST interfaces. Perhaps I am reading outdated/incorrect documentation? Any help would be great! Thanks.
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 ArticlevCD - Get VM quantity of each Organization
Hi all,I need to export a nice, simple report, with two columns:Organization Name | Number of VMs I need all the VMs in each Org (both running and not running). I know there's a function getting this...
View Articlehow to insert files from physical machines into vmdk
Hi any advise on the script i could use to upload files from host machines in to vmdk directly
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 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 ArticleRemove Storage Profile from vDC
Hello, How to remove storage profile from Organization vDC in vCloud Director 5.1. To be exact, I want to remove *(Any) profile from all my vdcs. I know how to create it and how to enable / disable it,...
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 ArticleVdcStorageProfiles missing in Orgvdc object (version5.1)
Hi,I'm trying to create organisation VDC's in vCloud 5.1.New to version 5.1 is the use of storage profiles in the provider VDC.I cannot create an Org VDC with storage profiles since this property does...
View Article