Script Slow: VCD Pulling External/Internal IP from Org/vApp
I was curious if any of the script masters could review the following. This works fine, but it is pretty slow. I'm hoping that the speed can be improved. When I query against an organization, vapp,...
View ArticleHow to change Storage Profile of VM in vAppTemplate?
Hi everyone, I've got a project in front of me to migrate existing VMs from an existing storage profile or the * profile to a newly created storage profile. I've determined how to get this done for...
View ArticleVm - Vapp owner
So in writing a script for Vcloud Director, I want to be able to see who "owns" a VM. It seems like I cannot get the vapp information from the VM. Any ideas? Below is some of the code that I am working...
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 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 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 ArticleUsing Connect-CIServer in a Start-Job
Has anyone been able to complete something like this? This works perfectly in a plain PoSh window but running in a Start-Job it never gets past the connect-ciserver. The job shows running and...
View ArticleHow Can I Set the Customization Script for all VMs in a vApp
Using the .ExtensionData method found here: http://communities.vmware.com/thread/392462?start=0&tstart=0 (Thanks alanrenouf)I'm able to set some guest customization properties via PowerCLI. My...
View ArticleObtain vApp expiration date
Hey All,Im trying to get a vApps expiration date using PowerCLI. I can: $FrankApp = Get-CIVApp -name "Frank" $FrankApp.RuntimeLease Days : 30Hours : 0Minutes :...
View ArticleAdding a vApp Template to Cloud from Catalog in vCD with PowerCLI
I've imported the VM's directly from Virtual Center and created a vApp with Import-CIvApp. I've then shutdown and captured to Catalog with assistance from AtanasAtanasov. So now I have 4 Catalogs each...
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 ArticleGet External IP for VM within vApp
I'm trying to query vCD for the External IP address for a specific VM within a vApp. I can get the VM and some other information but am having a hard time getting the External IP since it's in a...
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 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 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 ArticleAll vCloud VMs in a provider vDC
Trying to get all VMs use a provider. The issue is making the call from the provider to then get all the vApps - it cannot be made this way Does anyone have a clean way of perfroming this action? ( A...
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 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 ArticleHow can I get a vCloud VM's NIC type?
I'm trying to write a script that will compare the NIC type in vCloud to the NIC type in vCenter to help workaround a bug in vCloud 1.5. I can get a vCenter VM's NIC type by getting the vCenter VM and...
View Article