az vm start cli command starts the linux VM but doesnt exit rather it hangs forever

Rathnam Karthik 20 Reputation points
2024-05-02T14:18:26.4566667+00:00

Azure CLI command to start a linux VM in Azure does not exit but rather gets stuck (forever). Do we know if thats a limitation with cli or am I missing something here? Thanks for the help

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

Accepted answer
  1. deherman-MSFT 33,786 Reputation points Microsoft Employee
    2024-05-02T16:52:15.83+00:00

    @Rathnam Karthik

    I just tested my Linux VM by executing the az vm start command. It completed in about 2 minutes and exited. It is possible that there is some issue with your VM that is preventing it from starting.

    If you don't want to wait for the VM to fully start before exiting the command you can add the --no-wait y option.

    To troubleshoot specific VM state issues, see Troubleshoot Windows VM deployments and Troubleshoot Linux VM deployments.

    Hope this helps. Let me know if you are still facing issues with this VM and we will be happy to assist.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image


0 additional answers

Sort by: Most helpful