Can't start, can't stop, can't delete the Azure VM

Abrar Adil S 476 Reputation points
2026-07-03T14:37:08.0933333+00:00

Unable to start the VM, which went in to failed state, unable to detach the existing OS disks, can't update the NIC of the Azure VM.
Have tried to redeploy and reapply as well, nothing is working.

Tried to delete the VM and create a new one, but unable to delete it as well, receiving the error as below

*"An error occurred while deleting virtual machine 'APIManager-M2' and/or any selected resource(s) associated with it. Error: 'An unexpected error occured while processing the network profile of the VM. Please retry later.'"

*looking for suggestions on how to resolve this error.

Azure Virtual Machines
Azure Virtual Machines

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

0 comments No comments

Answer accepted by question author

Jose Benjamin Solis Nolasco 9,621 Reputation points Volunteer Moderator
2026-07-03T14:50:44.2666667+00:00

Welcome to Microsoft Q&A

Hello @Abrar Adil S I hope you are doing well.

I have been in the same situation before follow this oficial guide from MS https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/restart-resize-error-troubleshooting

Please check the following:

  • Verify the VM Provisioning State and Resource Health in the Azure portal.
  • Review the Activity Log to identify the operation that first caused the VM to enter the failed state.
  • Retry the operation after a few minutes, as transient platform issues can occasionally cause this behavior.
  • If the issue persists and all VM operations continue to fail, I recommend opening a Microsoft Support request, as backend intervention may be required to recover or remove the VM.

References

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.

Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. AI answer

    2026-07-03T14:37:24.5066667+00:00

    The VM is stuck in a failed state and its network profile is preventing delete/start/stop operations. Use the supported "reapply" operation to refresh the VM’s properties, then retry delete or reconfigure.

    Follow one of these paths:

    1. Use Azure portal (recommended)
      1. In the Azure portal, go to Virtual Machines.
      2. Open the VM that shows Failed status.
      3. Under Support + troubleshooting, select Redeploy + reapply.
      4. Choose Reapply and wait for the operation to complete.
      5. After reapply succeeds, try again to:
        • Delete the VM, or
        • Start/stop the VM, or
        • Update NIC / detach OS disk as needed.
    2. Use Azure CLI
      1. Make sure the correct subscription is selected:
              az account set --subscription "<SubscriptionIDName>"
        
      2. Run reapply on the VM:
              az vm reapply -g MyResourceGroup -n APIManager-M2
        
      3. When the command completes, retry the delete or other operations on the VM.
    3. Use Azure PowerShell
      1. Set the context to the correct subscription:
              Set-AzContext -Subscription "<Subid>"
        
      2. Reapply the VM configuration and update it:
              Get-AzVM -ResourceGroupName <ResourceGroup> -Name APIManager-M2
              Set-AzVM -ResourceGroupName <ResourceGroup> -Name APIManager-M2 -Reapply
              Update-AzVM -VM <PSVirtualMachine> -ResourceGroupName <ResourceGroupName>
        
      3. After this completes, attempt to delete or modify the VM again.

    If delete still fails due to network profile issues after reapply, check and clean up dependent resources (NICs, IPs, peerings, etc.) in the recommended order before retrying deletion.


    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.