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-17T17:43:29.14+00:00

I have a VM (d2d-ubuntu1404) in resource group D2D_MCIT that is blocked from all operations.

 

- VM uses unmanaged disks (now retired)

- VM cannot start due to platform restriction

- VM cannot be converted because an extension (enablevmaccess) is in failed state

- Extension cannot be removed because VM is not running

- Resource update is blocked due to unmanaged disk policy

 

This has created a circular dependency deadlock.

Please remove the failed extension (enablevmaccess) from the backend so I can proceed with my managed disk migration.

Azure Virtual Machines
Azure Virtual Machines

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


4 answers

Sort by: Most helpful
  1. TRANSPORTCORP 0 Reputation points
    2026-06-26T14:53:59.3466667+00:00

    Hey!

    I'm stuck and its been 7 business days and I just need to be allowed access to my server to make the changes requested regarding the unsupported extension. It's stuck in a state where I cant migrate it or access it. I have spoken to some nice support agents but no one is able to get me anywhere I just keep hearing my request is being followed up again for approval. I've attempted to be extremely patient and professional but I don't know what else to do. Any suggestions?!? I can't sit in uncertainty for weeks on end. I don't want to play the money card, but we've spent over 100k in the last 8 years here on Azure on VMs and I can't get help for 1 thing in 8 years inside of a week and a half? Can someone please assist with this Case#2606170040009471 I would be extremely grateful for any help I can get.

    Was this answer helpful?


  2. TRANSPORTCORP 0 Reputation points
    2026-06-17T18:01:52.21+00:00

    Remove-AzVMExtension: Cannot modify extensions in the VM when the VM is not running.

    Was this answer helpful?

    0 comments No comments

  3. TRANSPORTCORP 0 Reputation points
    2026-06-17T18:00:15.4+00:00

    PS /home/transportcorp> Remove-AzVMExtension -ResourceGroupName d2d_mcit -VMName d2d-ubuntu1404 -Name "enablevmaccess" -Force

    Remove-AzVMExtension: Cannot modify extensions in the VM when the VM is not running.

    ErrorCode: OperationNotAllowed

    ErrorMessage: Cannot modify extensions in the VM when the VM is not running.

    ErrorTarget:

    StatusCode: 409

    ReasonPhrase:

    OperationID : d4e48c76-500f-4d10-985a-97fbd5c2c35e

    Was this answer helpful?

    0 comments No comments

  4. AI answer

    2026-06-17T17:43:42.8766667+00:00

    Backend removal of the failed enablevmaccess extension isn’t possible through self-service tools. However, there are a few supported options to break the deadlock and clear the failed extension state so that migration can proceed.

    1. Verify the VM agent and extension state
      • Use Azure CLI or PowerShell to confirm the extension status:
        • Azure CLI:
                 az vm extension show -g D2D_MCIT --vm-name d2d-ubuntu1404 --name enablevmaccess
          
        • PowerShell:
                 Get-AzVM -ResourceGroupName D2D_MCIT -Name d2d-ubuntu1404 -Status
          
      • This confirms that the VM agent is reporting the extension in a failed state and that the VM is not running.
    2. Trigger a new goal state (Reapply)
      • Even when extensions are in a failed state, a VM Reapply can sometimes clear inconsistent extension metadata without requiring a full start:
        • Azure CLI:
                 az vm reapply -g D2D_MCIT -n d2d-ubuntu1404
          
        • PowerShell:
                 Set-AzVM -ResourceGroupName D2D_MCIT -Name d2d-ubuntu1404 -Reapply
          
      • Reapply usually doesn’t reboot the VM, but in rare cases it might trigger a pending update that requires a restart. Run this at a time when a short downtime is acceptable.
      • After reapply completes, re-check the extension state as in step 1. If the extension moves out of the failed state, retry the managed disk migration or conversion.
    3. Remove the extension when possible
      • If at any point the platform allows extension modification (for example, after a successful reapply or partial start), remove the enablevmaccess extension:
        • PowerShell:
                 Remove-AzVMExtension -ResourceGroupName D2D_MCIT -VMName d2d-ubuntu1404 -Name "enablevmaccess"
          
      • Once removed, rerun the migration or template that performs the managed disk conversion.
    4. Check extension logs if the VM becomes startable
      • If the VM can be started even briefly, inspect the extension and agent logs inside the guest to ensure there are no residual issues:
        • Linux extension logs: /var/log/azure/
        • Extension settings/status: /var/lib/waagent/
      • For Windows VMs (for reference in similar cases):
        • Logs: C:\WindowsAzure\Logs\Plugins and C:\WindowsAzure\Logs\WaAppAgent\
        • Settings/status: C:\Packages\Plugins
    5. When the VM remains blocked for all operations
      • If the VM cannot be started, re-applied, or modified due to platform restrictions and unmanaged disk policy, the remaining option is a platform-side fix.
      • In that case, open an Azure support ticket and clearly state:
        • The VM name and resource group.
        • That the VM uses unmanaged disks and is blocked from start/convert operations.
        • That enablevmaccess is in a failed state and cannot be removed because the VM is not running.
        • That resource updates are blocked by the unmanaged disk policy, creating a circular dependency.
      • Support can then adjust the VM model or extension state from the backend so the extension no longer blocks managed disk migration.

    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.