Deploying custom windows images have provision state failed

Sebastian Mechelke 21 Reputation points
2022-12-01T15:48:15.547+00:00

Hi,
no matter what I do, my deployed vms always have provision state false.

Repro steps, all using the azure portal ui:

  1. Deploy a windows 10 vm from open marketplace (e.g. win10 enterprise, 20h2)
  2. Capture it and add it to a custom marketplace as generalized image
  3. Create a new vm, based on this image

266190-failed-deployment.png

I don't get, why the guest OS is supposed to be wrongly prepared. I tried generalizing using the portal, sysprep on the vm, and "az vm generalize". All without success.

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

Answer accepted by question author
  1. KarishmaTiwari-MSFT 20,822 Reputation points Microsoft Employee Moderator
    2022-12-02T02:53:00.063+00:00

    Hi @Sebastian Mechelke Thanks for posting your query on Microsoft Q&A.

    From my understanding, you were able to create a VM from Azure Marketplace, Generalize that VM, create an image from that generalized VM. All of that was completed successfully.
    Then, when you tried to create a VM from that image via Azure Portal, you received this error.

    I would recommend checking this document to confirm that all the steps of VM Generalization were followed: https://learn.microsoft.com/en-us/azure/virtual-machines/generalize#windows

    Also, see if the suggestions provided here help : https://stackoverflow.com/questions/54784018/provisioning-failed-os-provisioning-for-vm-vm-name-did-not-finish-in-the-allo

    Let me know the results and I can further investigate.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sebastian Mechelke 21 Reputation points
    2022-12-02T14:53:06.72+00:00

    Thank you, @KarishmaTiwari-MSFT .
    I managed to make it work.
    I have somehow overlooked, that I needed to remove the panther folder. Now it works using sysprep.

    0 comments No comments

Your answer

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