New-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 ArticleAdd new NIC to VM (like New-CINetworkAdapter)
Hi all I'm trying to find out how to simply add a new NIC to a VM within a vApp. Something like "New-CINetworkAdapter" would be great, but unfortunately does not exist.. Anyone some experience or tipps...
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 ArticleGet-Org failure on Win 8.1 PS 4.0
I've got a script to deploy v-apps on the cloud but on Windows 8.1 with PowerShell 4.0 the Get-OrgVcd fails. It returns nothing whereas on Win7 with Powersehll 3.0 it does return the Org. does anyone...
View ArticleDuplicate storage profiles on vCloud
After upgrading the vCloud from 5.1.2 to 5.5 we are unable to create vapp and capture to catlogDuplicate storage profiles on vCloud – i.e, Unable to create new vApp or capture to catlog.Scope of the...
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 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 ArticleDoes anyone know how to recompose a vcloud vapp from powercli without having...
I’m struggling to find out how to do this. There doesn’t appear to be much out there (or more likely I can’t find it). It seems to me like this would be a common task, so there must be a way to do...
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 ArticleExample for configuring VM's "guest properties" (i.e. OVF settings)
Following is an example for configuring a VM's "guest properties" (in vSphere this is called "OVF settings/environment") using PowerCLI (or API).Note that this script was designed to run as an "org...
View ArticlevCloud Director Change e1000 to VMXNET3 Online
Hi Guys, I have been made aware of a VMware KB that is supposed to have a script that allows the change of a primary NIC from e1000 / Flexible to VMXNET3 online and it interacts with VMTools to notify...
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 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 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 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 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 ArticleGet-Civapptemplate vmtoolsversion
hello! Is it possible to obtain the version of installed VMTools in a vCloud vApp template?
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 ArticleSet Mac address of vCloud VM
Hi For a customer I need to regularly clone a production VM into vCloud for a test-environment. The VM needs to have an identical Mac Address because of some old-fashioned licenses. After cloning, the...
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 Article