Enabling cloning for Instant clone pool

If current image state is not ready, clonging of instant clone pools is
not supported.
This commit is contained in:
praveenmathamsetty
2017-02-03 15:50:03 +05:30
parent 04985c7301
commit 4b711cca91

View File

@@ -4362,6 +4362,8 @@ function New-HVPool {
$DesktopVirtualCenterNetworkingSettings = $DesktopVirtualCenterProvisioningSettings.VirtualCenterNetworkingSettings
$DesktopVirtualCenterManagedCommonSettings = $clonePool.AutomatedDesktopData.virtualCenterManagedCommonSettings
$DesktopCustomizationSettings = $clonePool.AutomatedDesktopData.CustomizationSettings
$CurrentImageState =`
$clonePool.AutomatedDesktopData.provisioningStatusData.instantCloneProvisioningStatusData.instantCloneCurrentImageState
}
elseIf ($clonePool.ManualDesktopData) {
if (! $VM) {
@@ -4380,8 +4382,8 @@ function New-HVPool {
break
}
}
if ($provisioningType -eq 'INSTANT_CLONE_ENGINE' -and $poolType -eq 'AUTOMATED') {
Write-Error "Cloning is not supported for instant clone pools"
if ($provisioningType -eq 'INSTANT_CLONE_ENGINE' -and $poolType -eq 'AUTOMATED' -and $CurrentImageState -ne 'READY') {
Write-Error "Instant clone pool's Current Image State should be in 'READY' state, otherwise cloning is not supported"
break
}
} else {