Error code: OSProvisioningTimedOut

Alan Chen 21 Reputation points Microsoft Employee
2022-09-01T04:08:19.91+00:00

We are getting this OSProvisioningTimedOut error recently with the following error detail message. Anyone knows what the root cause of this? And any mitigated way? Thanks.

Error code:
OSProvisioningTimedOut

Error details:
OS provisioning failure has reached terminal state and is non-recoverable for VM 'xxx'. Consider deleting and recreating this virtual machine. Additional Details: OS Provisioning for VM 'xxx' did not finish in the allotted time. The VM may still finish provisioning successfully. Please check provisioning state later. For details on how to check current provisioning state of Windows VMs, refer to https://aka.ms/WindowsVMLifecycle and Linux VMs, refer to https://aka.ms/LinuxVMLifecycle.

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

Accepted answer
  1. deherman-MSFT 33,626 Reputation points Microsoft Employee
    2022-09-02T15:35:52.793+00:00

    @Alan Chen

    As you mentioned that you are seeing this error when you are trying to power-on VM from Azure portal. Also, the VM is booting up with error (Is the VM working as expected thought it is taking more time to boot?) Assuming it is working but you are seeing the error on Azure portal.

    This could mostly be due VM sync issues with the host.

    Below are few suggestions to try and see if they help resolve the issue:

    Change VM Size:
    Try to Change the Size/Family of the VM from existing size to a new size, this will move the VM to a new host. And later you can try to come back to the original VM size.

    • Stop the VM.
    • Select the VM size and then pick a new size and click on Resize.
    • Start the VM.

    Redeploy VM:

    • In the Azure Portal, head over to the problematic VM.
    • Go to the bottom of the VM’s settings blade and click on, redeploy to start the process of redeploying the VM to a new node.
    • It shouldn’t take no more than 15 minutes to redeploy the VM.
    • Once completed, check if you are still seeing any errors on the portal.

    Reference document.

    Recreate VM:
    Create a Snapshot of the OS Disk in Azure of the VM:

    • Go to the VM and head over to the Disks blade.
    • In the disk blade and select the OSDisk.
    • In the OS Disk's menu, select create snapshot.
    • In the snapshot window in Azure, name the snapshot and select the corresponding resource group.
    • Click create and wait for a couple minutes.
    • Once the snapshot is created, go to create resources tab.

    You can use this script to create a VM from the os disk snapshot.

    Also, please refer these documents for VM common errors for more information.

    Understand common error messages when you manage virtual machines in Azure.

    Troubleshoot deployment issues when creating a new Windows VM in Azure.

    Linking similar issue for reference.

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

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


0 additional answers

Sort by: Most helpful