I have a VM in East US that went unresponsive, because of this I attempted to stop and start the VM. I tried both the Azure Portal and the CloudShell with Stop-AzureRmVM -Force, but neither seems to work. The machine seems to be stuck in

Ajay Singh Moltra 135 Reputation points
2024-07-22T09:34:10.2+00:00

I have a VM in East US that went unresponsive, because of this I attempted to stop and start the VM. I tried both the Azure Portal and the CloudShell with Stop-AzureRmVM -Force, but neither seems to work. The machine seems to be stuck in

JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
995 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,621 questions
0 comments No comments
{count} votes

Accepted answer
  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

1 additional answer

Sort by: Most helpful
  1. Kamil Krawczyk 235 Reputation points
    2024-07-22T09:58:59.21+00:00

    Try: az vm stop --resource-group <your-resource-group> --name <your-vm-name> --skip-shutdown
    The skipShutdown flag is specifically designed for situations where a VM needs to be quickly powered off, and the risk of data loss or corruption can be accepted

    more:
    https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/windows/repair-windows-vm-using-azure-virtual-machine-repair-commands#repair-process-example

    1 person found this answer helpful.
    0 comments No comments

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.