DEV Community

Pranam K
Pranam K

Posted on

How to START, RESTART, STOP and DELETE multiple Azure VM's?

When we have Virtual Machines in Azure (opens new window), we have to stop, start and restart them. We can easily do this for one VM, in the overview blade of the VM in the Azure portal.

But how do we stop or restart multiple VMs at once?

We can do it in the Azure portal!

In this article, we will use the Azure portal to perform basic VM management tasks on multiple Azure VMs.

Prerequisites:

  1. An Azure subscription (If you don't have an Azure subscription, create a free account (opens new window)before you begin)
  2. Two or more existing Azure Virtual Machines (opens new window).
  • Use the Azure portal to control Azure VMs

We will use the Azure portal to stop, restart and delete multiple VMs at the same time in this article.

Go to the Azure portal (opens new window)

  • Click on the menu in the top-left and select "Virtual machines". This shows you all your Azure Virtual Machine's.

  • In the menu, you can see buttons for Start, Restart and Stop. If you don't see those buttons, you can reach them by opening the menu from the ... button.

Image description

(Options menu in the Virtual machines blade)

  • Select two Virtual Machines

  • Click the Restart button

  • Confirm the restart operation. This will restart the selected VMs, which can take a few minutes.

Image description

(Restart multiple Virtual Machines)

  • Select two VMs

  • Open the menu and click on Delete. This opens the Delete Resources blade.

  • Type "yes" to confirm the deletion and click Delete.

Image description

(Delete multiple Virtual Machines)

Conclusion:

We can use the Virtual Machine's blade in the Azure portal to Start, Stop, Restart and Delete multiple Azure Virtual Machine's (opens new window) at the same time.

Discussion (0)