If you are an Azure Veteran … what was the first thing you have created in Azure? If you are new to Azure, what are you looking for to create? In many cases the answer is: Virtual Machines
An even if you are one of the fancy-new-world-everything-paas-and-serverless gurus … we must be honest and say: most things in the cloud run on VMs. Even if the Virtual Machine layer is no longer visible to us, as the PaaS idea is abstracting this.
So let’s have a look into some base topics you should know about running Azure Virtual Machines … if I missed something important, feel free to add in comments.
Hypervisor in Azure
I remember back to the early days of Azure … when there were rumors about the Hypervisor that is running Azure. Is it Hyper-V? Is it VMware? Is it a Linux distro?
In the end it is very easy: Windows Azure Hypervisor
It is a customized Windows Server operating system which is hardened, minimized to the required components and adjusted for the standardized hardware and environment of Microsoft Azure. It can be compared to the Hyper-V core from a concept perspective.
The virtualization hosts run as single hosts and are not grouped together in Clusters. On the one hand for scalability reason, on the other hand it is due to the design of Azure Hardware and Operations.
This optimized Hypervisor and other components are running the “Fabric”. On top of this we have the Azure Resource Manager as the management layer for customers to create, control and operate their workloads.
Virtual Machine Storage
Another important topic is the placement of Virtual Machine storage. If you boot up your first Azure VM with a Windows Operating System you will recognize that there are two disks attached:
C:\ – Operating System 127 GB
D:\ – Temp Drive
To understand this is very important. The C-drive is where your operating system is on. This disk is stored in an Azure Page BLOB Stroage account remote from the Hypervisor Host. This allows us to reboot the machine on any other host even as we have no clusters in Azure.
The D-drive is a local drive out of the Hypervisor. This is done to optimize the performance of the VM. As you can imagine a remote storage has some latency and to shift things like the Cache to this is not very useful. So the temp drive covers temporary data. Please do not store any valuable data there.
As soon as the VM gets booted on another host, the D-drive will be empty again 🙂
Virtual Machines Operations
Many people still think, if a VM is running in Azure, Microsoft will take care of it. So I never have to care about backup, patching, security, etc.
But this is a big misconception!
As we can see in the shared responsibility model, the customer still has to take action on his VMs. The cloud provider only serves the underlying infrastructure.
So that means if you are running a VM with a public IP, without firewall, unpatched and without backup … you can do this. I would not recommend …. but nobody is blocking you.
That’s the benefit of IaaS, as you can decide how fast you want to change. In PaaS, Microsoft is taking over the VM layer … but that also means they are deciding on updates, etc.
States of Virtual Machines
On very common issue is the misunderstanding of VM states. This is that much important that it is (was) even a question in some Azure certifications. We know the following main states:
Running – this is the normal working state of a VM – it is fully charged
Stopped – the VM is shutdown but still has an allocated slot on the host – it is charged without licensing cost
Stopped (Deallocated) – VM is removed from host – no charge for instance, only other components like disks are still charged
Additionally there are states in between like Starting, Stopping and Deallocating.
Pricing and Cost Saving options
Azure VMs are brought to you in fixed sizes. To learn more about this have a look into the official documentation.
Azure Virtual Machines are charged on full minutes. So you have to pay the instance size for the time you are running your VM. Also with this, normally, you pay for the licensing cost.
What you always have to keep in mind that a VM has related resources like, Network, Storage, Backup, … all those resources incur additional cost. Especially things like network egress can make a VM much more expensive than initially expected.
To safe some money on VMs you could use Azure Reservations for the VM size and for some licenses. And you can also have a look into Hybrid Use Benefit of Microsoft.
I love social media and all the channels I follow. So also this topic came into my view out of a LinkedIn post of David das Neves. I had a look into it … and thought I should share it here. Microsoft Learning on GitHub Did you know that there is a number of repositories…
What do you do on May 28th?! Where will you be on May 28th? You don’t know?! Let me tell you: You will be in the Netherlands, in Veenendaal and visit Azure Fest NL 2020 You don’t know what Azure Fest is … in the words of the organizers: Azure Fest NL is a free, single…
So as we know the Azure Networking Basics now, we can focus on the base element in Networking in Azure: Azure VNets Azure Virtual Networks a.k.a. VNets An Azure Virtual Network is the fundamental building block in an Azure environment. It is your private network portion of the azure network. Each VNet is a separated…
If you have never heard about Microsoft OpenHack … you should keep on reading. Because this is a unique opportunity for raising the bar of your own skill. So let’s have a closer look on OpenHack What is OpenHack? To say it without my own words: Microsoft OpenHack is a developer focused event where a…
Let’s have a quick look at the Migration of Linux based systems to Microsoft Azure. For sure, as we know there are a lot of supported Linux Operating Systems in Microsoft Azure. But if you are running something on-premises, how could a Linux Migration look like. I do not want to cover any third party…
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here:
Cookie Policy
Leave a comment