Get 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 Articlenew-ciuser?
hi! just created my first Cloud Organisation with vSphere PowerCLI 5.1 with new-org -name "bla" -fullname "blubb" IfI do this on the Web Frontend, the next page will ask me for an admin user for that...
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 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 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 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 ArticleImport and Export of vApp
Hi All, Is it possible to export vApp using PowerCLI? We have DR requirement which stats - All vApp created in DC-A should be available in DC-B.As long as place holder vApp's are available we always...
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 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 ArticleOrganization vDC Edge Gateway
Been trying to figure out how to create a edge gateway in a vDC with powershell and have gotten nowhere, perhaps someone else can give a hand? So i've tried to check an excisting edge gateway to see...
View ArticleIs it possible to set the vCloud API Version to use when using PowerCLI?
Hello, PowerCLI Version: 5.5.0.6316PowerShell version: 4 I am automating the creation of vApps and VMs using the tools in PowerCLI. During testing I have been using two different vCloud Datacentres,...
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 ArticleWorking with vCloud Metadata in PowerCLI
Based on Jake Robinson's post at GeekAfterFive - Infrastructure as Code, it seems the sample scripts in Alan Renouf's March 30, 2012 post to the VMware PowerCLI Blog, Working with vCloud Metadata in...
View ArticleBuild URLs for: VM Console, vCloud Director vApp, VM properties in vSphere
Hi all I made a script to generate URLs for the following access:- Open a VM's Console in vSphere Web Client- Open vApp (to which the VM corresponds to) in vCloud Director- Open the VM's Summary Tab in...
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 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 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 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 ArticleGet-ProviderVdc returns Null values for StorageUsedGB StorageAllocatedGB and...
Has anyone else seen this? The Get-OrgVdc does return Storage information but I want to collect it from the Provider VDC PowerCLI C:\Scripts\vmware> Get-ProviderVdc moc-vmcl1101-pvdc Name...
View ArticlevCD Powercli question....digging through API
Does anyone know how to extract the DateCreated for vApps and VMs via PowerCLI? The dates are readily available in the DB in dbo.vms, but i can't seem to dig it out via PowerCLI. I've found some...
View Article