OSProvisioningTimedOut

Sanjeevkumar Madhubharamannavar 21 Reputation points
2022-12-01T14:24:00.89+00:00

Getting OS Provisioning error while deploying VM into Azure portal -

OSProvisioningTimedOut\\",\r\n \\"message\\": \\"OS Provisioning for VM 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)

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,134 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. vipullag-MSFT 26,416 Reputation points
    2022-12-01T15:48:04.35+00:00

    @Sanjeevkumar Madhubharamannavar

    Thanks for reaching out on Microsoft Q&A Platform.

    The issue is mostly due to the image that you are using for deploying the VM and it is not prepared properly. Would recommend to recreate the image and try again to deploy VM.

    When converting the VHD there is a possibility that the disk may be configured as a dynamic disk which will not work with Azure. Please refer this link for converting to a fixed VHD.
    Also, please check this documentation for preparing Ubuntu VHD for upload to Azure.

    Below are few reference documents:
    Bringing and creating Linux images in Azure.
    Understand common error messages when you manage virtual machines in Azure.
    Troubleshoot deployment issues when creating a new Linux VM in Azure.

    This document has the error causes mentioned.

    266225-image.png

    Hope that helps.
    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.

    0 comments No comments

  2. Ramya Harinarthini_MSFT 5,361 Reputation points Microsoft Employee
    2022-12-01T15:54:24.6+00:00

    @Sanjeevkumar Madhubharamannavar Welcome to Microsoft Q&A, Thank you for posting your here!!

    As per the error message the VM provisioning could not be completed in allotted time and could see that you are trying to deploy the VM from generalized Image.

    For Windows: Make Sure you have properly run Sysprep (System preparation tool).

    In the System Preparation Tool dialog box, select Enter System Out-of-Box Experience (OOBE), and make sure the Generalize checkbox is selected

    For Linux: Make sure to run the below command +user parameter also removes the last provisioned user account. To keep user account credentials in the VM, use only -deprovision.

    sudo waagent -deprovision+user

    If you are uploading a VHD from on prem to use in Azure, start with below docs:

    For Windows: prepare-for-upload-vhd-image

    For Linux: upload-vhd

    Hope this helps!
    Kindly let us know if the above helps or you need further assistance on this issue.

    ---------------------------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.