Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

Commit

Permalink
Sort alias is not available with powershell (core) on mac osx
Browse files Browse the repository at this point in the history
fix issue 496

See PowerShell/PowerShell#2246
  • Loading branch information
alagoutte committed Mar 14, 2018
1 parent 9c61c19 commit ff7feca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Examples/NSXBuildFromScratch.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ catch {
If ( $deploy3ta ) {

# Compute details - finds the host with the least used memory for deployment.
$DeploymentVMHost = $Computecluster | Get-VMHost | Sort MemoryUsageGB | Select -first 1
$DeploymentVMHost = $Computecluster | Get-VMHost | Sort-Object MemoryUsageGB | Select -first 1
if ( -not ( Test-Connection $($DeploymentVMHost.name) -count 1 -ErrorAction Stop )) {
throw "Unable to validate connection to ESX host $($DeploymentVMHost.Name) used to deploy OVF to."
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/NSXLBAustoScale-v1.0.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ if (($number_vms -lt $VM_Max) -and ($clone_vm -eq $true)) {
$new_vm = "$VM_Clone_PrefixName$($number_vms-$VM_Min+1)"
write-host -foregroundcolor "Green" "Adding new Clone_VM $new_vm..."
"Adding new Clone_VM $new_vm..." >> $Output_File
$vmhost = $cluster_compute | Get-vmhost | Sort MemoryUsageGB | Select -first 1
$vmhost = $cluster_compute | Get-vmhost | Sort-Object MemoryUsageGB | Select -first 1
New-VM -Name $new_vm -Template $vm_template -vmhost $vmhost
Start-VM -VM $new_vm

Expand Down

0 comments on commit ff7feca

Please sign in to comment.