An Azure service that is used to provision Windows and Linux virtual machines.
I was asked in follow up by the agent
Hemalatha
Microsoft External Staff
In the meantime, I wanted to confirm one point from the Microsoft documentation, which states:
"If there is an error during migration, or if a VM is in a failed state because of issues in a previous migration, run the
ConvertTo-AzVMManagedDiskcmdlet again. A simple retry usually unblocks the situation."
Could you please confirm whether you have already retried running the ConvertTo-AzVMManagedDisk cmdlet? If so, could you also let me know the outcome or share any error message you received?
Thank you.
MY Response to this is:
When I run the...
ConvertTo-AzVMManagedDisk cmdlet
Here is my output,
PS /home/transportcorp> Stop-AzVM -ResourceGroupName "d2d_mcit" -Name "d2d-ubuntu1404" -Force
OperationId : 8c35a0a9-bc52-481c-a9f7-cd3685b8c59d
Status : Succeeded
StartTime : 6/29/2026 10:14:17 PM
EndTime : 6/29/2026 10:14:28 PM
Error :
PS /home/transportcorp> ConvertTo-AzVMManagedDisk -ResourceGroupName "d2d_mcit" -VMName "d2d-ubuntu1404"
ConvertTo-AzVMManagedDisk: Operation 'convertToManagedDisks' is not allowed on VM 'd2d-ubuntu1404' since VM has extension 'enablevmaccess' in failed state.
ErrorCode: OperationNotAllowed
ErrorMessage: Operation 'convertToManagedDisks' is not allowed on VM 'd2d-ubuntu1404' since VM has extension 'enablevmaccess' in failed state.
ErrorTarget:
StatusCode: 409
ReasonPhrase:
OperationID : 8d49afe4-7091-4fd0-bd87-e6c7ebf07e97
PS /home/transportcorp>
Yes, I can confirm that I retried the ConvertTo-AzVMManagedDisk cmdlet.
The VM stopped and deallocated successfully this time, but the conversion still failed. It looks like the operation is being blocked because a VM extension (enablevmaccess) is in a failed provisioning state.
Above is the exact output and error message from my retry:
It appears Azure prevents structural changes to a VM if an extension is in a failed state. The error seems to be happening because Azure enforces a "Succeeded" state on the VM and all its components before allowing major infrastructure changes. The enablevmaccess extension is either hung or failed. Please remove the extension or re-apply it to clear the failed state.
Thank you