DEMO: Starting and Restarting a VM
Start course
1h 27m

This course will give you a basic understanding of Azure virtual machines (VMs) and how you can use them in your Azure environments.

The course begins by introducing you to Azure VMs and what resources are necessary to deploy them, before moving onto pricing and the different virtual machine options available. Next, the course explores availability sets and availability zones and gives a demonstration that shows you how to create an availability set using the Azure portal.

The course shows how to deploy both Windows and Linux virtual machines, and you'll get a demonstration of how to deploy and connect to each. Rounding off the course is a section on basic management tasks; you’ll learn how to start, stop, restart, redeploy, and resize virtual machines.

This course is packed full of real-world demonstrations from within the Azure portal to give you first-hand experience of how to get the most from Azure Virtual Machines.

For any feedback you may have relating to this course, please contact us at

Learning Objectives

  • Gain a foundational understanding of Azure virtual machines, their features, and their pricing
  • Learn how to set up availability sets
  • Learn how to create and connect to both Windows and Linux virtual machines with Azure
  • Learn how to manage your Azure VMs including starting, stopping, restarting, redeploying, and resizing VMs

Intended Audience

This course is intended for anyone who is interested in learning about the basics of Azure virtual machines.


To get the most from this course you should have a basic understanding of Microsoft Azure and of the Azure portal.


Hello, and welcome back. In this brief demonstration, I'm going to show you how to simply start and stop a virtual machine. And I'm going to explain a little bit about what happens during these processes.

On the screen here, you can see I'm logged into my Azure portal, and I'm on the Overview page for VMO2. The virtual machine is currently in the stopped state, and it's deallocated. Now, what this means is that this VM will not incur any compute charges. And it won't incur compute charges because it's in the deallocated state.

Now had this VM been in the stopped state, then this VM, although not running, would continue to incur compute charges. So that's an important difference to recognize when you have a virtual machine in the stopped state. If you want to be sure that your VM isn't incurring charges, you need to make sure that it's in the deallocated state here.

Oftentimes, if you shut down the virtual machine from the OS from within the OS using the shutdown command, you'll find that your VM sits in that stopped state, but continues to be allocated and running up charges. So anytime you stop a machine, you want to do it through the Azure portal or maybe through PowerShell.

So I have this machine in the stopped state. What I'm going to do here is simply start him up by clicking Start in the top menu here. We can see that the state of our VM is now shown as running. So at this point, it's obviously incurring compute charges. In situations where I simply need to reboot my VM, instead of going through a complete stop, deallocate, start process, I can use the restart process here.

So let's go ahead and restart the VM. It asks me if I'm sure. And we'll go ahead and click Yes. Now when we restart a VM, it never gets deallocated. Now that's important because if you have dynamically allocated public IPs, or private IPs for the VM, when a VM is deallocated, those IP addresses can change.

Since a restart doesn't deallocate the VM, those IP addresses won't change. And we can see here that the restart has already completed and our VM is running. In the next brief lesson, I'll show you the process of stopping a VM and explain what happens when that VM is stopped.

About the Author
Learning Paths

Tom is a 25+ year veteran of the IT industry, having worked in environments as large as 40k seats and as small as 50 seats. Throughout the course of a long an interesting career, he has built an in-depth skillset that spans numerous IT disciplines. Tom has designed and architected small, large, and global IT solutions.

In addition to the Cloud Platform and Infrastructure MCSE certification, Tom also carries several other Microsoft certifications. His ability to see things from a strategic perspective allows Tom to architect solutions that closely align with business needs.

In his spare time, Tom enjoys camping, fishing, and playing poker.