Skip to main content
Padma Nanduri
December 3, 2026

Citrix Machine Creation Services (MCS) provides an efficient mechanism for maintaining and publishing standardized virtual desktop images. However, an image update can occasionally fail during the image preparation stage even when there is no obvious problem with the underlying Azure infrastructure. 

In this case, an MCS image update for a production machine catalog repeatedly failed during the image preparation/finalization stage. 

The initial error pointed toward the ImageManagementPrep_NoAutoShutdown setting. After resolving that configuration issue, subsequent attempts continued to fail—but now with a generic Image preparation timed out message. 

This led to a deeper investigation to determine whether the temporary MCS preparation VM was actually failing, whether Azure was preventing MCS from creating the required resources, or whether Windows was simply taking longer than expected to complete the preparation process. 

Ultimately, two separate conditions were identified and corrected.  

Initial MCS Image Update Failure 

The first image update attempt failed with the following Citrix MCS error: 

TaskState            : ImagePreparationFinalizationFailed 

TaskStateInformation : Terminated 

Operation             : ImagePreparation 

Error Message:

Image preparation timed out but ImageManagementPrep_NoAutoShutdown is set to true.

Please disable it and try again.

The error appeared to clearly indicate that the MCS preparation VM was configured not to automatically shut down after image preparation. 

The first step was therefore to validate the current Provisioning Service configuration. 

Check the NoAutoShutdown Configuration 

Using the Citrix PowerShell SDK, the following command was run: 

Get-ProvServiceConfigurationData
    -Name ImageManagementPrep_NoAutoShutdown 

The result was: 

ImageManagementPrep_NoAutoShutdown    false

This was unexpected. 

The service-level setting was already configured as false, while the MCS task explicitly reported that ImageManagementPrep_NoAutoShutdown was set to true. 

Initial Citrix MCS Error 

This is the error Citrix Machine Creation Services (MCS) reports when image preparation times out during a machine catalog update. The message also points to the ImageManagementPrep_NoAutoShutdown setting. 

Investigating the Provisioning Scheme Metadata 

Because the service-level configuration appeared correct, the next step was to inspect the metadata associated directly with the affected provisioning scheme. 

The following command can be used: 

Get-ProvScheme ` 

    -ProvisioningSchemeName "<CatalogName>" | 

    Select-Object -ExpandProperty MetadataMap

The affected catalog contained: 

ImageManagementPrep_DoImagePreparation    True 

ImageManagementPrep_NoAutoShutdown        True 

TagUpdateStatus                           Success

This revealed the actual problem. 

Although: Get-ProvServiceConfigurationData reported ImageManagementPrep_NoAutoShutdown=False, the affected provisioning scheme had its own catalog-specific metadata value set to True. 

A known-working catalog was also compared with the affected catalog. The working catalog had NoAutoShutdown=False, while the problematic catalog contained NoAutoShutdown=True.  

This distinction is important when troubleshooting MCS because checking only the service-level configuration may not reveal an override stored against an individual provisioning scheme. 

Removing the Catalog-Level No Autoshutdown Setting 

The catalog-specific metadata was removed using: 

Remove-ProvSchemeMetadata ` 

    -ProvisioningSchemeUid "<ProvisioningSchemeUID>" ` 

    -Name "ImageManagementPrep_NoAutoShutdown"

Note:

Replace <ProvisioningSchemeUID> with the UID for the affected provisioning scheme. Avoid copying a UID from another environment or catalog. 

The metadata was then verified again: 

Get-ProvScheme ` 

    -ProvisioningSchemeName "<CatalogName>" | 

    Select-Object -ExpandProperty MetadataMap

After the change, the following value was no longer present: 

ImageManagementPrep_NoAutoShutdown    True

The next image update attempt confirmed that this correction had worked because the explicit NoAutoShutdown error disappeared. 

However, the image update still failed. 

The new error was simply: 

Image preparation timed out.

This was an important change in behavior. It demonstrated that the first configuration issue had been corrected and that a second issue was affecting image preparation. 

Provisioning Scheme Metadata 

The Citrix MCS error reported that image preparation timed out during the machine catalog update while ImageManagementPrep_NoAutoShutdown was set to true.

To check the setting, run Get-ProvServiceConfigurationData -Name ImageManagementPrep_NoAutoShutdown.

The output below shows that the setting was false when checked. 

Investigating the second Image Preparation Timeout 

The next failed MCS task was reviewed in more detail. 

The task had reached: 

TaskState       : PreparingMasterImage 

TaskProgress    : 30 

CurrentOperation: PreparingMasterImage 

Before eventually failing with: 

TaskState            : ImagePreparationFinalizationFailed 

TaskStateInformation : Terminated 

ActiveElapsedTime    : 4082 

TerminatingError     : Image preparation timed out 

Status               : Finished

4082 seconds is approximately 68 minutes. 

The environment’s MCS image preparation timeout had previously been configured for 60 minutes. 

This raised an important question: 

Was the preparation VM genuinely hung, or was it still working but simply taking longer than the configured timeout? 

The answer to that question would determine whether increasing the timeout was appropriate. 

Checking the MCS Preparation Timeout 

The current timeout was verified with: 

Get-ProvServiceConfigurationData ` 

    -Name ImageManagementPrep_PreparationTimeout

The result showed: 

ImageManagementPrep_PreparationTimeout    60

The previous task had already taken approximately 68 minutes before Citrix terminated it. 

Rather than immediately increasing the timeout, however, additional validation was performed to determine what was happening inside Azure and the temporary preparation VM. 

Validating the Azure Infrastructure 

Azure Activity Logs were reviewed to determine whether an Azure-side resource provisioning failure was responsible for the MCS timeout. 

Initially, unrelated failures elsewhere in the Azure subscription were visible. This highlighted the importance of filtering the Activity Log to the resources associated with the affected MCS workload. 

After filtering to the relevant resource group, the MCS-related operations showed successful resource creation and cleanup. 

Operations involving resources such as the following were completing successfully: 

  • Network interfaces  
  • Disks  
  • Network Security Groups  
  • SAS URI operations  
  • Temporary snapshots  
  • Resource cleanup  

For example: 

Operation: Create or Update Network Interface 

Status: Succeeded 

Snapshot cleanup also showed: 

Operation: Delete Snapshot 

Status: Succeeded

This helped rule out an obvious Azure NIC, disk, NSG, or temporary-resource provisioning failure. 

The investigation therefore shifted toward the guest operating system inside the temporary MCS preparation VM.  

Azure Activity Log 

Temporary preparation VM starting 

During the machine catalog update, Citrix Machine Creation Services (MCS) created a temporary VM to prepare the updated image. The Azure Boot Diagnostics screenshot shows that the VM reached Windows startup. This helps narrow down where to investigate the timeout by confirming that the VM was created and began booting. 

Applying Computer Settings 

Eventually, Boot Diagnostics showed:  

This was an important finding. 

The VM had not crashed and was not completely hung. Windows was actively progressing through computer-side startup processing, but the process was unusually slow. 

At approximately 56 minutes, the Citrix task was still reporting: 

TaskState         : PreparingMasterImage 

TaskProgress      : 30 

ActiveElapsedTime : 3359 

Status            : Running

This explained why Citrix Studio appeared to remain at 30% for such a long period. 

The underlying Windows VM was still processing startup activities.  

Observing the Preparation VM Shutdown 

Boot Diagnostics was monitored further. 

The temporary preparation VM eventually progressed from startup processing into an orderly Windows shutdown sequence. 

During shutdown, services observed included: 

Group Policy Client and Windows Defender Advanced Threat Protection Service.

After the service shutdown sequence completed, Azure reported the temporary preparation VM in a Stopped state. 

This provided the evidence needed to distinguish between a failed preparation VM and a slow but progressing preparation VM.  

Preparation VM Shutting down 

After the temporary MCS preparation VM booted, Azure Boot Diagnostics captured Windows shutting down the Group Policy Client service. This confirms that Windows reached the shutdown phase. To verify that image preparation finished, check the final status of the machine catalog update in Citrix. 

Increasing the MCS Image Preparation Timeout 

At this point, the investigation had established that: 

  • Azure was successfully creating the required MCS resources.  
  • The temporary preparation VM was successfully booting.  
  • Windows was progressing through computer-side processing.  
  • The preparation VM was eventually entering an orderly shutdown.  
  • The process simply required longer than the existing 60-minute MCS timeout.  

The timeout was therefore increased from 60 minutes to 120 minutes for the next controlled test. 

Change the MCS Image Preparation Timeout 

Run: 

Set-ProvServiceConfigurationData ` 

    -Name ImageManagementPrep_PreparationTimeout ` 

    -Value 120 

Verify the configuration: 

Get-ProvServiceConfigurationData ` 

    -Name ImageManagementPrep_PreparationTimeout

The expected result was: 

ImageManagementPrep_PreparationTimeout    120

The original troubleshooting confirmed the timeout was changed from 60 to 120 minutes before the successful run.  

Important:

ImageManagementPrep_PreparationTimeout is a Provisioning Service-level configuration. Changing this setting can therefore affect image-preparation operations for other MCS catalogs, not only the catalog currently being troubleshot. Review the impact before making this a permanent configuration.

Successful Image Update 

After increasing the MCS image preparation timeout to 120 minutes, the next image update completed successfully. 

The temporary preparation VM was able to complete Windows startup, computer-side processing, and the shutdown sequence without exceeding the configured timeout. Citrix then completed the remaining image preparation and finalization steps successfully.  

Final Thoughts

This issue involved two separate conditions. First, the affected provisioning scheme contained ImageManagementPrep_NoAutoShutdown=True metadata, which caused the initial MCS image preparation failure. After removing this metadata, the remaining issue was that the temporary preparation VM required longer than the configured 60-minute timeout to complete its startup and shutdown processing.  

By validating the Azure resource operations, observing the temporary preparation VM through Boot Diagnostics, and increasing the MCS image preparation timeout to 120 minutes, the image update completed successfully. 

The key takeaway is that when an MCS image update fails with an Image preparation timed out error, it is important to determine whether the preparation VM is actually failing or simply taking longer than the configured timeout before making changes. 

That gives you a concise ending without repeating all the troubleshooting details again. 

If you are experiencing similar issues in your Citrix environment or need assistance identifying the root cause of provisioning failures, Ferroque’s team of Citrix experts can help. Contact us to discuss your environment and determine the best path forward.

  • Padma Nanduri
    Padma Nanduri

    Padma has been supporting and managing EUC systems on Citrix, Azure, AWS, and VMware for years, including ongoing infrastructure and DEX monitoring and alerting specializing in ControlUp. Padma has a customer-centric approach that focuses on managing solutions instead of just components, and along with her experience in managing EUC environments, Padma also has expertise in DevOps script development that extends core monitoring visibility and automated response capabilities to help keep many of Ferroque’s managed services customer environments running smoothly.

Subscribe
Notify of
guest

0 Comments

Redefine Your Approach to Technology and Innovation

Schedule a call to discover how customized solutions crafted for your success can drive exceptional outcomes, with Ferroque as your strategic ally.