I have a VM (d2d-ubuntu1404) in resource group D2D_MCIT that is blocked from all operations. I need to remove the failed extension.

TRANSPORTCORP 0 Reputation points
2026-06-29T20:35:41.8766667+00:00

I have a Case#2606170040009471, I am getting no responses I Was advised numerous times in my private messages over the past 8-9 business days that They were waiting for AFEC approval and that people were OOF and there has been follow up after follow up but my representative has no longer responded and I have no timelines on when I will hear back. I can't have this case fall by the wayside with my VM stuck and unable to access it. So I am merely posting this hoping to get it on someones radar so I can get some assistance and maybe a timeline to advise my customers. I normally get a follow up between 12-1PM EST on the days someone talks to me but today I am still in the dark with no timelines.

All of the original posts and conversations prior to this being made a case # can be found here:

https://learn.microsoft.com/en-us/answers/questions/5922975/i-have-a-vm-(d2d-ubuntu1404)-in-resource-group-d2d?source=docs


Azure Virtual Machines
Azure Virtual Machines

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


3 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. TRANSPORTCORP 0 Reputation points
    2026-06-29T22:29:34.7133333+00:00

    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-AzVMManagedDisk cmdlet again. A simple retry usually unblocks the situation."

    https://learn.microsoft.com/en-us/azure/virtual-machines/windows/convert-unmanaged-to-managed-disks#troubleshooting

    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

    Was this answer helpful?

    0 comments No comments

  3. AI answer

    2026-06-29T20:35:57.5066667+00:00

    The VM is blocked because the Linux VM Agent is failing to process extensions, leaving a failed extension that prevents normal operations. This behavior is consistent with known issues in specific Azure Linux Agent versions.

    To remove the failed extension and unblock the VM, use one of the following approaches, depending on what is failing in your scenario.

    1. Check and manage extensions via Azure CLI
      Run these commands from a machine that has Azure CLI installed and is authenticated to the subscription:
         # List all extensions on the VM
         az vm extension list --vm-name d2d-ubuntu1404 -g D2D_MCIT
         
         # Remove the failed extension (replace <extension name> with the Name from the list output)
         az vm extension delete --vm-name d2d-ubuntu1404 -g D2D_MCIT --name <extension name>
      
      This removes the extension definition from the VM model and is the supported way to get rid of a failed extension that is blocking operations.
    2. If the Linux VM Agent is stuck processing extensions (known downgrade issue)
      On affected Linux VMs (agent versions 2.2.21–2.2.24), extension processing can stop and block dependent services such as Backup and Site Recovery. In that case:
      • Connect to the VM console or SSH (if still possible).
      • Remove all manifest files used by the agent to track extensions:
             sudo rm /var/lib/waagent/*.manifest.xml
        
      • After removing these files, retry the Azure operation (Start, Redeploy, Backup, Restore point, or extension update) from the Azure portal or CLI.
    3. If the issue started after an Azure Linux Agent update (2.2.19 status reporting issue)
      For VMs where extension status is not reported after an agent update to 2.2.19, Azure may automatically install an extra extension:
      • Publisher: Microsoft.CPlat.Core
      • Type: RunCommandLinux
      If this extension itself is failed or no longer needed, remove it with the same CLI command as above:
         az vm extension delete --vm-name d2d-ubuntu1404 -g D2D_MCIT --name RunCommandLinux
      

    After removing the failed extension and cleaning up the agent manifests (if applicable), retry the blocked VM operation (Start, Redeploy, Backup, or restore point creation). If operations remain blocked, rerun the VM assist tool for Linux to diagnose remaining agent/extension issues:


    References:

    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.