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