Hi all,
Using the "Send-LinkedCloneRecompose" Powershell command, everything appears to work fine:
Get-Pool -Pool_id "$poolID" | Get-DesktopVM | Send-LinkedCloneRecompose -ParentVMPath "$parentPath" -ParentSnapshotPath "newSnapPath" -schedule ((Get-Date).AddMinutes(1)) -forceLogoff $false -stopOnError $true
Problem:
> Get-Pool -Pool_id "$poolID"
> ...
> parentVMSnapshotPath : **original old snapshot path**
> ...
So, is this a bug? Can this be reproduced, or is it a problem only I am experiencing?
Any ideas?
Thanks.
Using Send-LinkedCloneRecompose does not update the pool configuration - it only recomposes the VMs to the image specified.
You need to use the Update-AutomaticLinkedClonePool command, using it as below would only change the parent VM and snapshot leaving all other pool settings as they are.
Run this first and then use the Send-LinkedCloneRecompose to rebuild the VMs to the latest image.
Update-AutomaticLinkedClonePool -pool_id "$poolID" -parentVMPath "$parentPath" -parentSnapshotpath "newSnapPath"
Get-Pool -Pool_id "$poolID" | Get-DesktopVM | Send-LinkedCloneRecompose -ParentVMPath "$parentPath" -ParentSnapshotPath "newSnapPath" -schedule ((Get-Date).AddMinutes(1)) -forceLogoff $false -stopOnError $true
Using Send-LinkedCloneRecompose does not update the pool configuration - it only recomposes the VMs to the image specified.
You need to use the Update-AutomaticLinkedClonePool command, using it as below would only change the parent VM and snapshot leaving all other pool settings as they are.
Run this first and then use the Send-LinkedCloneRecompose to rebuild the VMs to the latest image.
Update-AutomaticLinkedClonePool -pool_id "$poolID" -parentVMPath "$parentPath" -parentSnapshotpath "newSnapPath"
Get-Pool -Pool_id "$poolID" | Get-DesktopVM | Send-LinkedCloneRecompose -ParentVMPath "$parentPath" -ParentSnapshotPath "newSnapPath" -schedule ((Get-Date).AddMinutes(1)) -forceLogoff $false -stopOnError $true
Htclee
Thanks for this.
I assume you are saying that whilst my command alone recomposed successfully, as soon as those desktops are destroyed, any new desktop will use the original snapshot?
Yes - exactly that.