none
OS Provisioning for VM 'XXX' did not finish in the allotted time. RRS feed

  • Question

  • First, thanks in advance,

    I created a VM from the market image windows server 2016, then I RDP to my VM and installed Oracle 12.2 and another custom app, after that I generalized my Azure VM by sysprep.exe and then created an image from it. But when I tried to create a new VM from the image it always returned error:

    "code": "DeploymentFailed",
    "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.",
    "details": [
    {
    "code": "Conflict",
    "message": "{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"OSProvisioningTimedOut\",\r\n \"message\": \"OS Provisioning for VM 'VM04' did not finish in the allotted time. The VM may still finish provisioning successfully. Please check provisioning state later. Also, make sure the image has been properly prepared (generalized).\\r\\n * Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/ \\r\\n * Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/ \"\r\n }\r\n ]\r\n }\r\n}"

    I don't know what wrong with it. Is my VM not actually generalized? and how to make sure my Azure VM is generalized successfully by sysprep.exe ?


    • Edited by Nymo Dong Thursday, July 18, 2019 1:34 AM
    Wednesday, July 17, 2019 9:30 AM

All replies

  • Hi Nymo,

    Thanks for reaching out!

    I followed the below documents and was able to provision a similar VM

    https://docs.microsoft.com/en-us/azure/virtual-machines/windows/capture-image-resource

    https://docs.microsoft.com/en-us/azure/virtual-machines/windows/create-vm-generalized-managed

    I followed the below steps:

    1. Created a Windows 2016 server VM

    2. Installed a couple of software

    3. Ran sysprep.exe

    4. Waited for the VM to shutdown

    5. Created a custom image from the shutdown VM

    6. Created a new VM from the image created in the previous step

    The VM got created successfully.

    Let me know if the above steps don't work for you.

    Thursday, July 18, 2019 3:33 PM
  • I carefully followed the steps above to create my VM, but it still failed anyway. I tried many times but got same failure.

    {"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"OSProvisioningTimedOut\",\r\n \"message\": \"OS Provisioning for VM 'VMP' did not finish in the allotted time. The VM may still finish provisioning successfully. Please check provisioning state later. Also, make sure the image has been properly prepared (generalized).\\r\\n * Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/ \\r\\n * Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/ \"\r\n }\r\n ]\r\n }\r\n}"}]}

    Thursday, August 22, 2019 7:27 AM
  • I too facing same issue ..

    Can anyone please help here.


    • Edited by reshvrts Tuesday, September 10, 2019 11:19 AM
    Tuesday, September 10, 2019 11:18 AM