Writing PowerCLI for Performance
I was building a piece of PowerCLU code to check on my vCD Deployed vAPPs for certain errors and because it’s me I was curious what performance difference there was between using array based operations verses piped operations in powershell. Here’s what I found out. Here is the array based operation – time to completion 2 minutes 30 seconds. $myVAPP = @(Get-CIVApp | Select-Object Org, Name, Status) foreach ($myVAPP.Name in $myVAPP) { IF ($myVAPP.Status -eq “FailedCreation”) { Write-Host ‘vAPP’…