An Azure service that is used to provision Windows and Linux virtual machines.
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:
- Open the VM.
- Select Support + troubleshooting → Redeploy + reapply.
- Select Reapply.
- 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^
- Locate the storage account and the source VHD, normally under the
vhdscontainer. - Create another blob container.
- Copy and paste the VHD into that container.
- 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