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.
8,100 questions
0 comments No comments
{count} votes

Accepted answer
  1. T. Kujala 8,726 Reputation points
    2022-04-27T04:51:23.14+00:00

    Hi @Piyush Nikhade ,

    You could try to do it by using the PS command.

    Stop-AzureRmVM

    PS C:\> Stop-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. srbhatta-MSFT 8,561 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

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.