Unable to create VM from an Image

Ravi Teja Manchikanti 46 Reputation points
2020-05-14T09:33:57.117+00:00

When I create a VM from Image I see below error although the VM status is Running. Please help

Provisioning state Provisioning failed. OS Provisioning failure has reached terminal state and is non-recoverable for VM 'testimage'. Consider deleting and recreating this virtual machine. Also, make sure the image has been properly prepared (generalized). * Instructions for Windows: https://azure.microsoft.com/documentation/articles/virtual-machines-windows-upload-image/ * Instructions for Linux: https://azure.microsoft.com/documentation/articles/virtual-machines-linux-capture-image/. Additional Details: { "resourceType": "Microsoft.WindowsAzure.ComputeResourceProvider.Core.Shared.Strings, CRP.Core.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "ResourceCode": "OSProvisioningTimedOutWithUserImage", "ResourceParameters": [ "testimage" ] }. OSProvisioningTimedOut
Provisioning state error code ProvisioningState/failed/OSProvisioningTimedOut

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,085 questions
{count} votes

Accepted answer
  1. vipullag-MSFT 23,946 Reputation points Microsoft Employee
    2020-05-14T16:39:42.067+00:00

    @Ravi Teja Manchikanti

    Based on the error might have occurred due to the OS deployment failed from the Portal side as it was unable to pass on some of the required paramaters which is why you got TimeOut message.

    VM did not finish the deployment correctly. But as you mentioned that the status is running, I would recommend to try stop (deallocate) and start the VM and see if that resolves the issue. If this does not help to resolve the error.

    My recommendation is to delete that Virtual Machine, take a snapshot of the OS Disk, create a disk from the snapshot and create the machine from that disk. Please use this link as reference to create a VM from a VHD by using the Azure portal in order to carry this process out (as you did not mention any OS in your question this sample is for Linux).

    [Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.]


1 additional answer

Sort by: Most helpful
  1. Ahmet Mutlu 1 Reputation point
    2020-05-14T19:15:53.6+00:00

    hi;
    could you look at this link ?

    troubleshoot-deployment-new-vm-windows

    0 comments No comments