The following error is seen while updating a MCS Machine Catalog after resizing the size of the Master VM disk.
Exception:
StudioErrorId : ProvisioningTaskError
ErrorCategory : NotSpecified
TaskState : FailedToCreateImagePreparationVm
TaskStateInformation : Terminated
ErrorId : FailedToCreateImagePreparationVm
Operation : PreparingMasterImage
ErrorMessage : Error: creating virtual machine failed. Exception: {"status":"Failed","error":
The Deployment error from Azure is seen:
Avoid resizing Master VM disks during the lifecycle of a MCS Machine Catalog where possible.
Workaround:
Modify the Storage Tier of the Machine profile under Azure Disk Size and Performance Settings according to the new disk size of the Master VM.
The error comes from a mismatch between the blob tier of the target storage container and the content length. The content length is the size of the updated VHD/blob being updated by MCS.
During an MCS update:
https://learn.microsoft.com/en-us/rest/api/storageservices/blob-service-error-codes