I was getting error while deploying a Windows VM in Azure. This VM image was created from a custom VHD.


Provisioning failed. OS provisioning for VM did not finish in the allotted time. The VM may still finish provisioning successfully. Also, make sure the image has been properly prepared (generalized).*...

Provisioning State Error Code: ProvisioningState/failed/OSProvisioningTimedOut

Anybody knows why it's failing?


That error can have multiple reasons as you can see in the following documentation


Besides those reasons, I’ve seen times that you get that error but the VM itself is deployed and works just fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.