How 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 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 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 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 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 ArticlePowerCLI/API for update storage profile in vDC
Hi,I found how to add or remove storage profile via vcloud API (VMware vCloud Director Documentation Center), but does anyone know how to do update (change size or disable) storage profile via API or...
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 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 ArticleTrying to retrieve External Network IP Address from specific vapp
I know this should be simple but having an issue. vCD 5.1 trying to use this script in the vmware help to get a list i can copy and paste into excel to retrieve the vm name and external ip from an...
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 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 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 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 ArticleIssues with vCloud Cmdlets when connecting to a CIServer using SessionID
I'm working on a PowerCLI script that deploys vCloud vApps to multiple OvDCs. The script works great when it's serial, but I have been running into issues when trying to get the deployments to run in...
View ArticleVMware vCloud Storage vmotion by Datastore and vDC ( Resource Pool )
This Shell will help you migrate the vm's between datastores that are managed by vcloud director ( Resource pool ) from the vi probably you will get an error the are insufficient for the operation and...
View ArticleGet and Set NAT config
Hi all, I am trying to read and write the NAT config for a larger vApp with complex rules with PowerCLI as whenever the vApp get's added to a different org from catalog all is gone. This vApp needs to...
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 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 ArticleQuestion: sVmotion and vCloud Director - updating VM's storage profile
Hi, I'm going to migrate a lot of vApps/virtual machines running in vCloud Director to a new storage system, and have created new Storage Profiles for this... I've found info and tried out some...
View Article