On Moving a VMware Horizon App to New Server Farm

1 min read
On Moving a VMware Horizon App to New Server Farm
Why this is missing in the VMware Horizon Admin console is peculiar.

Time to Move to a New Farm with Greener Pastures

Sometimes you don’t want to remain the same. This is also true for VMware Horizon applications. Sometimes they want to move to a new farm and live a new life. Though the Horizon Admin console isn’t into this idea we can still make it happen.

There is a bit of some trickery going on here as you’ll see in the PowerShell posted below. Naturally this is to be ran on one of your Connection Brokers and will replicate to all of his friends.

For Global Entitlements, as the under pinning’s are applications which the object remains the same, no further work is needed to be done. I’ve used this many times and its a clean and quick way to take care of migrating applications.

One Day VMware

We can hope that one day this feature makes it into the UI of the VMware Horizon Admin console, till then we can still accomplish great things.

Best Regards,
Michael Wood

$ConnectionServer = "MyConnectionServer"

Clear-Host
Write-Host ""
Write-Host "------- Move Horizon App to New Server Farm -------"
Write-Host ""
$Application = Read-Host "Enter App Name"
$NewServerFarm = Read-Host "New Server Farm"
$PAEServer = "CN=$NewServerFarm,OU=Server Groups,DC=vdi,DC=vmware,DC=int"

Write-Host ""
Write-Host "Settings Before Change..." -ForegroundColor Yellow
Get-ADObject "CN=$Application,OU=Applications,DC=vdi,DC=vmware,DC=int" -Server $ConnectionServer -Properties "pae-servers"

Set-ADObject "CN=$Application,OU=Applications,DC=vdi,DC=vmware,DC=int" -Server $ConnectionServer -Replace @{'pae-servers'=$PAEServer}

Write-Host ""
Write-Host "Results..." -ForegroundColor Yellow
Get-ADObject "CN=$Application,OU=Applications,DC=vdi,DC=vmware,DC=int" -Server $ConnectionServer -Properties "pae-servers"
Write-Host "Done!" -ForegroundColor Green
Write-Host ""
Pause
Virtualize Brief


Follow