Migrating to managed Disks

Fraser Scott 21 Reputation points
2025-07-31T15:10:25.7166667+00:00

Hi,

I am attempting to migrate an Linux VM to managed disks but an getting the message "Operation is not allowed since VM has an extension in failed state." on checking the extensions I can see that I have 5 with status unknown. Attached are the extensions.

Are they safe to uninstall? Or can someone guide me in the right direction to resolve.

Many thanks

FraserAzure Linux

Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
0 comments No comments
{count} votes

Accepted answer
  1. Jose Benjamin Solis Nolasco 4,986 Reputation points
    2025-07-31T15:15:52.8933333+00:00

    Hi Fraser,

    Thanks for reaching out.

    The error you're encountering — "Operation is not allowed since VM has an extension in failed state" — typically occurs when one or more VM extensions are in a Failed or Unknown status. This blocks operations such as migrating the VM to managed disks.

    generally, it is safe to remove extensions that are in a Failed or Unknown state, especially if they are not actively used by any monitoring or security solution.

    Examples of extensions that are commonly safe to remove if not in use:

    LinuxDiagnostic

    OmsAgentForLinux

    AzureMonitorLinuxAgent

    DependencyAgentLinux

    CustomScript

    However, before removing any extension, please confirm whether your environment depends on features like Microsoft Defender for Cloud, Log Analytics, or Azure Monitor. If those solutions are in place, make sure you don’t remove any required agents.

    😊 If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily. Thanks!

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Fraser Scott 21 Reputation points
    2025-08-01T10:42:55.0233333+00:00

    Hi,

    I have checked the status of the extensions and the output is below so it looks like it's the VMAgent that's the issue?? I have tried to restart the walinuxagent service but with no joy.

    Any help appreciated

    Thanks

    Fraser

    HyperVGeneration : V1

    BootDiagnostics :

    ConsoleScreenshotBlobUri :

    SerialConsoleLogBlobUri :

    Disks[0] :

    Name : Redmine

    Statuses[0] :

    Code                   : ProvisioningState/succeeded
    
    Level                  : Info
    
    DisplayStatus          : Provisioning succeeded
    
    Time                   : 8/1/2025 8:10:57 AM
    

    Extensions[0] :

    Name : AzureNetworkWatcherExtension

    Extensions[1] :

    Name : enablevmaccess

    Extensions[2] :

    Name : Microsoft.Insights.VMDiagnosticsSettings

    Extensions[3] :

    Name : OmsAgentForLinux

    Extensions[4] :

    Name : VMSnapshotLinux

    Capture

    VMAgent :

    VmAgentVersion : Unknown

    Statuses[0] :

    Code                   : ProvisioningState/Unavailable
    
    Level                  : Warning
    
    DisplayStatus          : Not Ready
    
    Message                : VM Agent is unresponsive.
    
    Time                   : 8/1/2025 10:08:25 AM
    

    Statuses[0] :

    Code : ProvisioningState/succeeded

    Level : Info

    DisplayStatus : Provisioning succeeded

    Time : 8/1/2025 8:36:06 AM

    Statuses[1] :

    Code : PowerState/running

    Level : Info

    DisplayStatus : VM running


Your answer

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