question

RaviTejaManchikanti-5724 avatar image
RaviTejaManchikanti-5724 asked ·

Unable to create VM from an Image

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
1 comment
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

check in validation test, if everything configured, correctly

0 Votes 0 · ·
vipullag-MSFT avatar image
vipullag-MSFT answered ·

@RaviTejaManchikanti-5724

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 comment Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Fantastic !! stop and start the VM works. Thank you very much:)

0 Votes 0 · ·
AhmetMutlu-7461 avatar image
AhmetMutlu-7461 answered ·

hi;
could you look at this link ?

troubleshoot-deployment-new-vm-windows


Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.