Restart a VM in a lab in Azure DevTest Labs

You can quickly and easily restart a virtual machine in DevTest Labs by following the steps in this article. Consider the following before restarting a VM:

  • The VM must be running for the restart feature to be enabled.

  • If a user is connected to a running VM when they perform a restart, they must reconnect to the VM after it starts back up.

  • If an artifact is being applied when you restart the VM, you receive a warning that the artifact might not be applied.

    Screenshot showing the restarting while applying artifacts warning.

    Note

    If the VM has stalled while applying an artifact, you can use the restart VM feature as a potential way to resolve the issue.

  1. Sign in to the Azure portal.

  2. Select All Services, and then select DevTest Labs from the list.

  3. From the list of labs, select the lab that includes the VM you want to restart.

  4. In the left panel, select My Virtual Machines.

  5. From the list of VMs, select a running VM.

  6. At the top of the VM management pane, select Restart.

    Screenshot of the Azure portal showing the Restart VM button.

  7. Monitor the status of the restart by selecting the Notifications icon at the top right of the window.

    Screenshot of the Azure portal showing the notification icon and message.

You can also restart a running VM by selecting its ellipsis (...) in the list of My Virtual Machines.

Screenshot of the Azure portal showing the Restart VM option in the ellipses menu.

After the VM restarts, you can reconnect to it by selecting Connect on the VM management pane.