Cannot Start VM due to unmanaged disks

Harvey Maness 0 Reputation points
2026-11-25T19:16:44.2966667+00:00

I have a VM that is using unmanaged disks and cannot be started. Managed disk conversion is blocked because the enablevmaccess VM extension is in a failed provisioning state. Removing or modifying the extension is also blocked because the VM is stopped. The VM is caught in a dependency loop preventing recovery.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

2 answers

Sort by: Newest
  1. Vinodh247-1375 44,281 Reputation points Volunteer Moderator
    2026-11-26T00:17:47.22+00:00

    The failed enablevmaccess extension belongs to the existing VM resource, not to the operating-system VHD. If the extension state cannot be cleared, you can bypass that dependency by rebuilding the VM from the VHD:

    1. Copy the unmanaged OS VHD to a separate blob or take a blob snapshot. Do not work directly against the only copy.
    2. Import the copied VHD as a managed OS disk. A specialised VHD retains the existing OS, applications, accounts and configuration.
    3. Create a new VM from that managed OS disk, matching the original generation, OS type, size and network configuration.
    4. Import any data-disk VHDs as managed data disks and attach them in the original LUN order.
    5. Validate boot, networking, applications and data before removing the original VM or VHDs.

    This avoids carrying the failed extension resource into the replacement VM. Do not delete the original VM or source VHDs until the rebuilt VM has started successfully and the workload has been validated. Microsoft’s documented in-place conversion also requires every extension to be in Provisioning succeeded, which explains why the current conversion remains blocked. [learn.microsoft.com], [learn.microsoft.com]

    Help make this community better for everyone: if this answer resolved your issue, please accept it or leave an upvote. If not, share more details in a comment so we can continue the discussion and find the right solution

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-25T19:18:58.6033333+00:00

    Because Azure unmanaged disks were retired on March 31, 2026 and affected VMs can no longer start, clear the failed VM/extension state without starting the guest, remove the failed VMAccess extension, and convert the deallocated VM to managed disks before attempting another start.^1^

    1. Reapply the VM model

    Reapply is supported for Windows and Linux VMs in a failed provisioning state and does not require the guest OS to be running.

    In the Azure portal:

    1. Open the VM.
    2. Select Support + troubleshooting → Redeploy + reapply.
    3. Select Reapply.
    4. Wait for the operation to finish, then inspect Settings → Extensions + applications.

    Alternatively, use Azure CLI:

    az vm reapply \
      --resource-group <resource-group> \
      --name <vm-name>
    
    az vm get-instance-view \
      --resource-group <resource-group> \
      --name <vm-name> \
      --query instanceView.statuses
    

    Reapply updates the VM’s resource model and is the documented recovery for a VM stuck in Failed state.^2^ It can also trigger a new extension GoalState; although it normally does not reboot the VM, a pending update can rarely cause a restart.^3^

    2. Remove the failed VMAccess extension

    If Reapply restores extension-management operations, remove the failed enablevmaccess extension. Removing VMAccess can remove its password/RDP/SSH recovery functionality, so reinstall it after migration only if it is still required.

    First obtain the exact extension resource name:

    az vm extension list \
      --resource-group <resource-group> \
      --vm-name <vm-name> \
      --query "[].{Name:name,State:provisioningState}" \
      --output table
    

    Then remove only the failed extension:

    az vm extension delete \
      --resource-group <resource-group> \
      --vm-name <vm-name> \
      --name <exact-extension-name>
    

    Confirm that no remaining extension reports Failed or Updating. Conversion requires every extension to be in Provisioning succeeded; otherwise it fails with HTTP 409.^4^

    3. Convert from the deallocated state

    If the VM belongs to an availability set, convert the availability set first. Then run:

    az vm deallocate \
      --resource-group <resource-group> \
      --name <vm-name>
    
    az vm convert \
      --resource-group <resource-group> \
      --name <vm-name>
    
    # Run only after az vm convert succeeds.
    az vm start \
      --resource-group <resource-group> \
      --name <vm-name>
    

    Do not attempt the final start until conversion succeeds: before conversion, unmanaged-disk retirement prevents startup. The conversion is irreversible and converts both the OS disk and attached data disks. Original VHD blobs are not deleted automatically; retain them until the managed-disk VM has booted and its data has been validated.^4^

    If Reapply does not clear the extension state

    The extension troubleshooting guidance includes attaching an empty data disk to trigger a new GoalState when Reapply fails, specifically for certificate/GoalState-related extension failures.^3^ Use that workaround only if:

    • Azure permits a compatible disk type to be attached to this legacy VM, and
    • the extension error indicates a GoalState or CRP certificate problem.

    If those conditions are met, add an empty compatible data disk under VM → Settings → Disks, wait for the model update, remove the temporary disk, and retry extension removal. Do not assume that attaching a managed disk to this unmanaged-disk VM is supported.

    If disk attachment is rejected, extension operations remain blocked, or the VM stays in Failed, open an Azure VM support request. Ask support to investigate and recover the stuck VM provisioning/extension state so that the failed extension can be removed and managed-disk conversion can proceed. Include:

    • VM resource ID and region
    • Power and provisioning states
    • Complete extension status/message
    • Failed operation and correlation ID from VM → Activity log
    • Results of the Reapply attempt

    Preserve the unmanaged VHD before escalation

    For a Windows VM with an unmanaged OS disk, Microsoft documents copying the source VHD into another blob container using Azure Storage Explorer.^5^

    1. Locate the storage account and the source VHD, normally under the vhds container.
    2. Create another blob container.
    3. Copy and paste the VHD into that container.
    4. Preserve the copy until recovery is complete.

    Do not continue with the article’s legacy step of creating another unmanaged repair VM: unmanaged VMs can no longer be started after retirement. Use the VHD copy as a recovery artifact and have Azure Support assist with a currently supported managed-disk reconstruction if the in-place conversion cannot be unblocked. For Linux, the cited offline-copy procedure does not establish an equivalent reconstruction workflow, so preserve the VHD and engage Azure Support rather than applying the Windows repair procedure.


    References

    1. Migrate unmanaged disks to managed disks
    2. Virtual machine stuck in a failed state
    3. Troubleshooting Azure Windows VM extension failures
    4. Convert unmanaged disks to managed disks for an Azure virtual machine
    5. Attach an unmanaged disk to a VM for offline repair
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

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