How to configure this error?

Adarsh Shukla 40 Reputation points
2023-12-05T07:21:44.6033333+00:00

Failed to start virtual machine 'VMName'. Error: OS Provisioning failure has reached terminal state and is non-recoverable for VM 'VMName'. 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: OS Provisioning for VM 'VMName' 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). * 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/ * If you are deploying more than 20 Virtual Machines concurrently, consider moving your custom image to shared image gallery. Please refer to https://aka.ms/movetosig for the same.

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

Accepted answer
  1. Olga Os - MSFT 5,916 Reputation points Microsoft Employee
    2023-12-05T23:13:33.42+00:00

    Hello Adarsh Shukla,

    Welcome to the MS Q&A Forum.

    There can be various causes for OS Provisioning failure. A provisioning failure happens when the OS image fails to load due to incorrect preparatory steps, selecting the wrong settings during the image capture from the portal or whatever other OS level issues which leads to the non boot state.

    Based on my personal experience, the primary cause of OS provisioning failures is either incorrect and insufficient preparation of the image, or "broken" image.

    Before you upload a Windows virtual machine (VM) from on-premises to Azure, you must prepare the virtual hard disk (VHD or VHDX). As example, there you could review steps on how to Prepare a Windows VHD or VHDX to upload to Azure.

    You could also check the Booting screen during the provisioning to identify where OS provisioning stuck or failed.

    Additional resources:

    Remove machine specific information by deprovisioning or generalizing a VM before creating an image

    Troubleshoot deployment issues when creating a new Windows VM in Azure

    Hope above will help you resolve the issue.

    Sincerely,

    Olga Os.

    0 comments No comments

0 additional answers

Sort by: Most helpful