Unable to start/stop my VM

Piyush Nikhade 21 Reputation points
2022-04-27T04:43:37.46+00:00

Hi,

I have been using my Ubuntu VM for a while now. But from the last few days I am encountering a strange behaviour with my VM. I am not able to start or stop the VM which makes me unable to use it. Not getting any errors but simply takes a long time to start & hungs up on the UI.

Please help !

Thanks

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,274 questions
0 comments No comments
{count} votes

1 additional answer

Sort by: Most helpful
  1. srbhatta-MSFT 8,481 Reputation points Microsoft Employee
    2022-04-27T05:04:50.513+00:00

    Hi @Piyush Nikhade , thanks for posting your query on Microsoft QnA.
    Apologies for the inconvenience caused.
    Is the VM currently un Running state or in Stopped state?
    Could you once please run the below command and update the state of the VM?

    $VM=Get-AzVm -ResourceGroupName "rg-name" -Name "vmname"  
    Update-AzVm -ResourceGroupName "rg-name" -VM $VM  
    

    The above commands updates the state of VM, post running the above commands, when you get a Status code "OK", retry the operation (Start/Stop) on the VM, and check if it succeeds.

    Let me know if this helps. If the above does not help, please do comment under my answer and I shall engage with you to troubleshoot this further. Thanks.

    ---------------------

    If the above information helps, please accept as answer.

    0 comments No comments