Generalising/capturing an image via the GUI then redeploying throws the error This suggests the guest OS has not been properly prepared to be used as a VM image (with CreateOption=FromImage)

Jeff Daniels 0 Reputation points
2023-10-22T02:54:23.27+00:00

I started a vm using https://azuremarketplace.microsoft.com/en-us/marketplace/apps/center-for-internet-security-inc.cis-windows-10-l1?tab=overview

After I started the vm I immediately "Captured" it via the GUI on the vm page. I selected genralised vm. This deallocated the vm and created me an image that lives in my shared image gallery.

I then created a new vm, using the newly shared image as the base. This vm started and I was able to RDP, but it threw an error when provisioning

"OS Provisioning for VM 'au-vm-1' did not finish in the allotted time. However, the VM guest agent was detected running. This suggests the guest OS has not been properly prepared to be used as a VM image (with CreateOption=FromImage). To resolve this issue, either use the VHD as is with CreateOption=Attach or prepare it properly for use as an image:"

I don't understand why this error has occured. I could see it if I created the image myself via CLI. However all I have done is create an VM from azure market place, captured than, and redeployed my newly captured image which should be a carbon copy of the marketplace vm.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,703 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 37,986 Reputation points Microsoft Employee
    2023-10-24T19:47:28.73+00:00

    @Jeff Daniels

    Sorry to hear that you are experiencing issues capturing an image of your CIS Benchmark Windows 10 marketplace VM. To resolve this issue please try to backup this VM as specialized. See Issue: Custom image; provisioning errors, for more details:
    N<sup>4</sup>: If the OS is Windows specialized, and it is captured as generalized, you will get a provisioning failure error because the new VM is running with the original computer name, username, and password. Also, the original VM is not usable because it is marked as specialized.

    Hope this resolve your issue. Please let me know if you need further assistance and we can work with you directly to troubleshoot.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.