Hi @Piyush Nikhade ,
You could try to do it by using the PS command.
Stop-AzureRmVM
PS C:\> Stop-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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
Hi @Piyush Nikhade ,
You could try to do it by using the PS command.
Stop-AzureRmVM
PS C:\> Stop-AzureRmVM -ResourceGroupName "ResourceGroup11" -Name "VirtualMachine07"
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
.