Unable to create VM from an Image

Ravi Teja Manchikanti 46 Reputation points

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=, 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,579 questions
{count} votes

Accepted answer
  1. vipullag-MSFT 26,016 Reputation points

    @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

    could you look at this link ?


    0 comments No comments