When creating machine instances using Machine Creation Services on Amazon Web Services the following error appears:
Citrix.Console.Models.Exceptions.ScriptException An error occurred while preparing the image. at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.BackgroundTasks.ProvisioningSchemeTask.WaitForProvisioningSchemeActionCompletion(Guid taskId, Action`1 actionResultsObtained) at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.BackgroundTasks.ProvisioningSchemeCreationTask.StartProvisioningAction() at Citrix.Console.PowerShellSdk.ProvisioningSchemeService.BackgroundTasks.ProvisioningSchemeCreationTask.RunTask() at Citrix.Console.PowerShellSdk.BackgroundTaskService.BackgroundTask.Task.Run() DesktopStudio_ErrorId : UnknownError ErrorCategory : NotSpecified ErrorID : FailedToCreateImagePreparationVm TaskErrorInformation : Terminated InternalErrorMessage : An item with the same key has already been added.
Remove the secondary drive and/or partition from the template machine. If more storage is needed, expand the template machine’s primary drive size.
Support for this functionality is on the roadmap for future releases.
The template has multiple partitions and/or drives. Deployment of machines with multiple partitions and/disks through MCS is currently not a supported function.