Citrix Virtual Apps and Desktops - Unable to create/update catalog in Hyper-V Environment

Citrix Virtual Apps and Desktops - Unable to create/update catalog in Hyper-V Environment

book

Article ID: CTX693183

calendar_today

Updated On:

Description

When admin tries to create or update machine catalog, there is an error message displayed in Studio.

Error details: 

Failed to update the master image associated with the provisioning scheme because the configuration validating is not successful.

 

 

If you check the details:

 

StudioErrorId : ProvisioningTaskError
ErrorCategory : NotSpecified
TaskState : ValidationFailure
TaskStateInformation : Terminated
ErrorId : ValidationFailure
Operation : ValidatingInputs
ErrorMessage : None of the hosts are in good health. Please logon to the SCVMM server console and go to the Host/Cluster properties to check the health status.
Error Source : CitrixOrchestration

 

Environment

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.

Resolution

It is important to check the health of the Hyper-V hosts.

You can perform this tasks using powershell on the machine with Virtual Machine Manager powershell modules installed (Included with Microsoft SCVMM Console).

1 - Connect to the SCVMM server , example:

Get-SCVMMServer -ComputerName "SCVMMSERVER.DOMAIN.COM"

 2 - Check the health of Hyper-v hosts, example:

Get-SCVMHost | Select Name, OverallState

In environments with large number of hosts, you can filter the output, in the example beloe we check the hosts from one cluster only:

$Cluster = Get-SCVMHostCluster -Name "NAME OF THE CLUSTER"
Get-SCVMHost -VMHostCluster $Cluster | Select Name, OverallState

The expected state is "OK".

If you see the OverallState: "Needs Attention", this indicates that the host is not healthy.

3 - You can check Health Monitors and get more details. In the example below, we check the Health of hosts in the cluster:

$Cluster = Get-SCVMHostCluster -Name "NAME OF THE CLUSTER"
$Hosts = Get-SCVMHost -VMHostCluster $Cluster

foreach ($x in $Hosts) { $x.HealthMonitors }

You can see the state of monitor. In the example below, the agent version on the Hyper-v host required attention:

 

 

You can also perform similar health checks from SCVMM Console. You can select Hyper-V host in the console and select View State.

Example:

 

Usually PowerShell / Console show the recommended actions / remediation. 

 


Problem Cause

All Hyper-V hosts were not healthy - there was Agent update pending .

Additional Information

Microsoft Virtual Machine Manager PowerShell

https://learn.microsoft.com/en-us/powershell/module/virtualmachinemanager/?view=systemcenter-ps-2025