Sample Script: Creating an Empty vApp with vCloud PowerCLI
Hi Everyone, The New-CIVApp cmdlet does not allow us to create empty vApps (which can be useful when templating out network configurations, for example). This shortcoming can be overcome by calling the...
View ArticleCreating new Organization with specific Storage Profile
Been working on this a few hours now, but just can't seem to get it to work. Creating an organization with the Any(*) storage profile works, but as soon as i remove that profile and leave only the ones...
View ArticleImport LDAP Users
Has anyone attempted to import LDAP users via PowerCLI? I have a list of 65 users that need to be imported and I would like to save some time on all the clicks. I'm hoping I can get the information...
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 Article"Power On and Force Recustomization" PowerCLI
Hi Guys! I cannot find any solution for recustomization VM in vCloud 5.5. The sample of script: $VM_GL = Get-CIVM -Name VMachine -Org $OrgName -OrgVdc $OrgVdcName -VApp $New_Clone...
View Articleupdate vdc (allocation pool org vdc elastic)
Hello, I'm trying to update allocation pool vcpu speed settings (enabled elastic pool org vdc), but powercli supports only PAYG model. example:Get-OrgVdc -Name "arunas dev vdc"|select...
View ArticleClone VApp Template to another Org
I am trying to clone a VAPP template from a VDC in OrgA to a VDC in OrgB in vCloud Directory 5.5 A snippet of the script is below: $sourceVappTmpl = Get-CIVappTemplate -Name 'myvapp' $destOrgVdcName =...
View ArticlevCloud VM Monthly report vCpu|RAM|Storage
Hello , I am looking for script which will provide Monthly report of vCpu/ RAM & Storage utilization by each Individual vCloud Director Virtual Machine If the vCloud Director script is not...
View ArticleHow to change catalog default storage policy?
I am trying to change the default storage policy on a organizations catalogOrganization -> Catalogs -> Org Catalog -> Properties -> Storage -> Pre-provision on on specific storage...
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 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 ArticleExport all vCloud Edge Gateway rules to CSV file
Hi, For documenation purposes, I need to make a list of all vCloud firewall rules. Specifically, I am looking for Edge name, Rule ID, name, source, source port, destination, destination port, protocol,...
View ArticleImport-CIVAppTemplate is erroring out with DiskContentsPending error in vCD
Hi, I am trying the Import-CIVAppTemplate command in PowerCLI for vCloud Director and it is failing as below after some 15% completion.The vAppTemplate import never succeeds after this error.I am...
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 ArticleHow to find the storage of a VM in Cloud director
Hi All, When I use the below command Get-CIVM -OrgVdc "MyOrgVDC1", it lists all the VMs under the Organization VDC. And for each VM it gives the vCPU and Memory details. I also want the storage of the...
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-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 Articlevshield edge Command Line / Power CLI Script for installation
Hi All, Could you please share the commands / powerl cli script to install vshiled Edge Installation. We need to automate the Vshiled Edge Installation on Port Group. Regards,Sunil I B
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 Articleget-civm command piped to get-civapp | owner
Basically I've been researching to see how I might pull some reporting data from VCD. I ran across several sites that provide exactly what I am needing, but the problem is they all use the get-civm...
View Article